CRAN Package Check Results for Package ReinforcementLearning

Last updated on 2019-03-23 11:51:22 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.0.2 6.08 43.07 49.15 ERROR
r-devel-linux-x86_64-debian-gcc 1.0.2 6.18 35.26 41.44 ERROR
r-devel-linux-x86_64-fedora-clang 1.0.2 63.06 ERROR
r-devel-linux-x86_64-fedora-gcc 1.0.2 59.19 ERROR
r-devel-windows-ix86+x86_64 1.0.2 16.00 80.00 96.00 ERROR
r-patched-linux-x86_64 1.0.2 5.49 39.89 45.38 OK
r-patched-solaris-x86 1.0.2 83.50 NOTE
r-release-linux-x86_64 1.0.2 0.40 2.36 2.76 ERROR
r-release-windows-ix86+x86_64 1.0.2 9.00 56.00 65.00 OK
r-release-osx-x86_64 1.0.2 NOTE
r-oldrel-windows-ix86+x86_64 1.0.2 12.00 83.00 95.00 OK
r-oldrel-osx-x86_64 1.0.2 NOTE

Check Details

Version: 1.0.2
Check: tests
Result: ERROR
     Running 'testthat.R' [6s/7s]
    Running the tests in 'tests/testthat.R' failed.
    Complete output:
     > library(testthat)
     > library(ReinforcementLearning)
     >
     > test_check("ReinforcementLearning")
     -- 1. Failure: Reinforcement learning performs correctly (@test.ReinforcementLea
     predict(model) not equal to c(s1 = "down", s2 = "right", s3 = "up", s4 = "right").
     1/4 mismatches
     x[4]: "down"
     y[4]: "right"
    
     -- 2. Failure: Reinforcement learning performs correctly (@test.ReinforcementLea
     model$Reward not equal to -263.
     1/1 mismatches
     [1] -373 - -263 == -110
    
     -- 3. Failure: Policy updating performs correctly (@test.ReinforcementLearning.R
     predict(model) not equal to c(s1 = "down", s2 = "right", s3 = "up", s4 = "right").
     1/4 mismatches
     x[4]: "down"
     y[4]: "right"
    
     -- 4. Failure: Policy updating performs correctly (@test.ReinforcementLearning.R
     model$Reward not equal to -263.
     1/1 mismatches
     [1] -373 - -263 == -110
    
     -- 5. Failure: Policy updating performs correctly (@test.ReinforcementLearning.R
     model_new$Reward not equal to 633.
     1/1 mismatches
     [1] 710 - 633 == 77
    
     -- 6. Failure: Training examples are sampled correctly (@test.sampleExperience.R
     data$State not equal to c("s4", "s2").
     2/2 mismatches
     x[1]: "s2"
     y[1]: "s4"
    
     x[2]: "s1"
     y[2]: "s2"
    
     -- 7. Failure: Training examples are sampled correctly (@test.sampleExperience.R
     data$Action not equal to c("left", "right").
     1/2 mismatches
     x[1]: "up"
     y[1]: "left"
    
     -- 8. Failure: Training examples are sampled correctly (@test.sampleExperience.R
     data$NextState not equal to c("s4", "s3").
     2/2 mismatches
     x[1]: "s1"
     y[1]: "s4"
    
     x[2]: "s1"
     y[2]: "s3"
    
     -- 9. Failure: Epsilon-greedy action selection works correctly (@test.sampleExpe
     head(data_new$State, 2) not equal to c("s4", "s2").
     2/2 mismatches
     x[1]: "s2"
     y[1]: "s4"
    
     x[2]: "s1"
     y[2]: "s2"
    
     -- 10. Failure: Epsilon-greedy action selection works correctly (@test.sampleExp
     head(data_new$Action, 2) not equal to c("down", "right").
     2/2 mismatches
     x[1]: "right"
     y[1]: "down"
    
     x[2]: "down"
     y[2]: "right"
    
     -- 11. Failure: Epsilon-greedy action selection works correctly (@test.sampleExp
     head(data_new$NextState, 2) not equal to c("s4", "s3").
     2/2 mismatches
     x[1]: "s3"
     y[1]: "s4"
    
     x[2]: "s2"
     y[2]: "s3"
    
     == testthat results ===========================================================
     OK: 50 SKIPPED: 0 FAILED: 11
     1. Failure: Reinforcement learning performs correctly (@test.ReinforcementLearning.R#11)
     2. Failure: Reinforcement learning performs correctly (@test.ReinforcementLearning.R#12)
     3. Failure: Policy updating performs correctly (@test.ReinforcementLearning.R#40)
     4. Failure: Policy updating performs correctly (@test.ReinforcementLearning.R#41)
     5. Failure: Policy updating performs correctly (@test.ReinforcementLearning.R#48)
     6. Failure: Training examples are sampled correctly (@test.sampleExperience.R#21)
     7. Failure: Training examples are sampled correctly (@test.sampleExperience.R#22)
     8. Failure: Training examples are sampled correctly (@test.sampleExperience.R#24)
     9. Failure: Epsilon-greedy action selection works correctly (@test.sampleExperience.R#59)
     1. ...
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-devel-linux-x86_64-debian-clang

Version: 1.0.2
Check: tests
Result: ERROR
     Running ‘testthat.R’ [4s/6s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library(testthat)
     > library(ReinforcementLearning)
     >
     > test_check("ReinforcementLearning")
     ── 1. Failure: Reinforcement learning performs correctly (@test.ReinforcementLea
     predict(model) not equal to c(s1 = "down", s2 = "right", s3 = "up", s4 = "right").
     1/4 mismatches
     x[4]: "down"
     y[4]: "right"
    
     ── 2. Failure: Reinforcement learning performs correctly (@test.ReinforcementLea
     model$Reward not equal to -263.
     1/1 mismatches
     [1] -373 - -263 == -110
    
     ── 3. Failure: Policy updating performs correctly (@test.ReinforcementLearning.R
     predict(model) not equal to c(s1 = "down", s2 = "right", s3 = "up", s4 = "right").
     1/4 mismatches
     x[4]: "down"
     y[4]: "right"
    
     ── 4. Failure: Policy updating performs correctly (@test.ReinforcementLearning.R
     model$Reward not equal to -263.
     1/1 mismatches
     [1] -373 - -263 == -110
    
     ── 5. Failure: Policy updating performs correctly (@test.ReinforcementLearning.R
     model_new$Reward not equal to 633.
     1/1 mismatches
     [1] 710 - 633 == 77
    
     ── 6. Failure: Training examples are sampled correctly (@test.sampleExperience.R
     data$State not equal to c("s4", "s2").
     2/2 mismatches
     x[1]: "s2"
     y[1]: "s4"
    
     x[2]: "s1"
     y[2]: "s2"
    
     ── 7. Failure: Training examples are sampled correctly (@test.sampleExperience.R
     data$Action not equal to c("left", "right").
     1/2 mismatches
     x[1]: "up"
     y[1]: "left"
    
     ── 8. Failure: Training examples are sampled correctly (@test.sampleExperience.R
     data$NextState not equal to c("s4", "s3").
     2/2 mismatches
     x[1]: "s1"
     y[1]: "s4"
    
     x[2]: "s1"
     y[2]: "s3"
    
     ── 9. Failure: Epsilon-greedy action selection works correctly (@test.sampleExpe
     head(data_new$State, 2) not equal to c("s4", "s2").
     2/2 mismatches
     x[1]: "s2"
     y[1]: "s4"
    
     x[2]: "s1"
     y[2]: "s2"
    
     ── 10. Failure: Epsilon-greedy action selection works correctly (@test.sampleExp
     head(data_new$Action, 2) not equal to c("down", "right").
     2/2 mismatches
     x[1]: "right"
     y[1]: "down"
    
     x[2]: "down"
     y[2]: "right"
    
     ── 11. Failure: Epsilon-greedy action selection works correctly (@test.sampleExp
     head(data_new$NextState, 2) not equal to c("s4", "s3").
     2/2 mismatches
     x[1]: "s3"
     y[1]: "s4"
    
     x[2]: "s2"
     y[2]: "s3"
    
     ══ testthat results ═══════════════════════════════════════════════════════════
     OK: 50 SKIPPED: 0 FAILED: 11
     1. Failure: Reinforcement learning performs correctly (@test.ReinforcementLearning.R#11)
     2. Failure: Reinforcement learning performs correctly (@test.ReinforcementLearning.R#12)
     3. Failure: Policy updating performs correctly (@test.ReinforcementLearning.R#40)
     4. Failure: Policy updating performs correctly (@test.ReinforcementLearning.R#41)
     5. Failure: Policy updating performs correctly (@test.ReinforcementLearning.R#48)
     6. Failure: Training examples are sampled correctly (@test.sampleExperience.R#21)
     7. Failure: Training examples are sampled correctly (@test.sampleExperience.R#22)
     8. Failure: Training examples are sampled correctly (@test.sampleExperience.R#24)
     9. Failure: Epsilon-greedy action selection works correctly (@test.sampleExperience.R#59)
     1. ...
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc

Version: 1.0.2
Check: dependencies in R code
Result: NOTE
    Namespace in Imports field not imported from: ‘ggplot2’
     All declared Imports should be used.
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-patched-solaris-x86, r-release-osx-x86_64, r-oldrel-osx-x86_64

Version: 1.0.2
Check: tests
Result: ERROR
     Running ‘testthat.R’
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library(testthat)
     > library(ReinforcementLearning)
     >
     > test_check("ReinforcementLearning")
     ── 1. Failure: Reinforcement learning performs correctly (@test.ReinforcementLea
     predict(model) not equal to c(s1 = "down", s2 = "right", s3 = "up", s4 = "right").
     1/4 mismatches
     x[4]: "down"
     y[4]: "right"
    
     ── 2. Failure: Reinforcement learning performs correctly (@test.ReinforcementLea
     model$Reward not equal to -263.
     1/1 mismatches
     [1] -373 - -263 == -110
    
     ── 3. Failure: Policy updating performs correctly (@test.ReinforcementLearning.R
     predict(model) not equal to c(s1 = "down", s2 = "right", s3 = "up", s4 = "right").
     1/4 mismatches
     x[4]: "down"
     y[4]: "right"
    
     ── 4. Failure: Policy updating performs correctly (@test.ReinforcementLearning.R
     model$Reward not equal to -263.
     1/1 mismatches
     [1] -373 - -263 == -110
    
     ── 5. Failure: Policy updating performs correctly (@test.ReinforcementLearning.R
     model_new$Reward not equal to 633.
     1/1 mismatches
     [1] 710 - 633 == 77
    
     ── 6. Failure: Training examples are sampled correctly (@test.sampleExperience.R
     data$State not equal to c("s4", "s2").
     2/2 mismatches
     x[1]: "s2"
     y[1]: "s4"
    
     x[2]: "s1"
     y[2]: "s2"
    
     ── 7. Failure: Training examples are sampled correctly (@test.sampleExperience.R
     data$Action not equal to c("left", "right").
     1/2 mismatches
     x[1]: "up"
     y[1]: "left"
    
     ── 8. Failure: Training examples are sampled correctly (@test.sampleExperience.R
     data$NextState not equal to c("s4", "s3").
     2/2 mismatches
     x[1]: "s1"
     y[1]: "s4"
    
     x[2]: "s1"
     y[2]: "s3"
    
     ── 9. Failure: Epsilon-greedy action selection works correctly (@test.sampleExpe
     head(data_new$State, 2) not equal to c("s4", "s2").
     2/2 mismatches
     x[1]: "s2"
     y[1]: "s4"
    
     x[2]: "s1"
     y[2]: "s2"
    
     ── 10. Failure: Epsilon-greedy action selection works correctly (@test.sampleExp
     head(data_new$Action, 2) not equal to c("down", "right").
     2/2 mismatches
     x[1]: "right"
     y[1]: "down"
    
     x[2]: "down"
     y[2]: "right"
    
     ── 11. Failure: Epsilon-greedy action selection works correctly (@test.sampleExp
     head(data_new$NextState, 2) not equal to c("s4", "s3").
     2/2 mismatches
     x[1]: "s3"
     y[1]: "s4"
    
     x[2]: "s2"
     y[2]: "s3"
    
     ══ testthat results ═══════════════════════════════════════════════════════════
     OK: 50 SKIPPED: 0 FAILED: 11
     1. Failure: Reinforcement learning performs correctly (@test.ReinforcementLearning.R#11)
     2. Failure: Reinforcement learning performs correctly (@test.ReinforcementLearning.R#12)
     3. Failure: Policy updating performs correctly (@test.ReinforcementLearning.R#40)
     4. Failure: Policy updating performs correctly (@test.ReinforcementLearning.R#41)
     5. Failure: Policy updating performs correctly (@test.ReinforcementLearning.R#48)
     6. Failure: Training examples are sampled correctly (@test.sampleExperience.R#21)
     7. Failure: Training examples are sampled correctly (@test.sampleExperience.R#22)
     8. Failure: Training examples are sampled correctly (@test.sampleExperience.R#24)
     9. Failure: Epsilon-greedy action selection works correctly (@test.sampleExperience.R#59)
     1. ...
    
     Error: testthat unit tests failed
     Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc

Version: 1.0.2
Check: tests
Result: ERROR
     Running 'testthat.R' [8s]
    Running the tests in 'tests/testthat.R' failed.
    Complete output:
     > library(testthat)
     > library(ReinforcementLearning)
     >
     > test_check("ReinforcementLearning")
     -- 1. Failure: Reinforcement learning performs correctly (@test.ReinforcementLea
     predict(model) not equal to c(s1 = "down", s2 = "right", s3 = "up", s4 = "right").
     1/4 mismatches
     x[4]: "down"
     y[4]: "right"
    
     -- 2. Failure: Reinforcement learning performs correctly (@test.ReinforcementLea
     model$Reward not equal to -263.
     1/1 mismatches
     [1] -373 - -263 == -110
    
     -- 3. Failure: Policy updating performs correctly (@test.ReinforcementLearning.R
     predict(model) not equal to c(s1 = "down", s2 = "right", s3 = "up", s4 = "right").
     1/4 mismatches
     x[4]: "down"
     y[4]: "right"
    
     -- 4. Failure: Policy updating performs correctly (@test.ReinforcementLearning.R
     model$Reward not equal to -263.
     1/1 mismatches
     [1] -373 - -263 == -110
    
     -- 5. Failure: Policy updating performs correctly (@test.ReinforcementLearning.R
     model_new$Reward not equal to 633.
     1/1 mismatches
     [1] 710 - 633 == 77
    
     -- 6. Failure: Training examples are sampled correctly (@test.sampleExperience.R
     data$State not equal to c("s4", "s2").
     2/2 mismatches
     x[1]: "s2"
     y[1]: "s4"
    
     x[2]: "s1"
     y[2]: "s2"
    
     -- 7. Failure: Training examples are sampled correctly (@test.sampleExperience.R
     data$Action not equal to c("left", "right").
     1/2 mismatches
     x[1]: "up"
     y[1]: "left"
    
     -- 8. Failure: Training examples are sampled correctly (@test.sampleExperience.R
     data$NextState not equal to c("s4", "s3").
     2/2 mismatches
     x[1]: "s1"
     y[1]: "s4"
    
     x[2]: "s1"
     y[2]: "s3"
    
     -- 9. Failure: Epsilon-greedy action selection works correctly (@test.sampleExpe
     head(data_new$State, 2) not equal to c("s4", "s2").
     2/2 mismatches
     x[1]: "s2"
     y[1]: "s4"
    
     x[2]: "s1"
     y[2]: "s2"
    
     -- 10. Failure: Epsilon-greedy action selection works correctly (@test.sampleExp
     head(data_new$Action, 2) not equal to c("down", "right").
     2/2 mismatches
     x[1]: "right"
     y[1]: "down"
    
     x[2]: "down"
     y[2]: "right"
    
     -- 11. Failure: Epsilon-greedy action selection works correctly (@test.sampleExp
     head(data_new$NextState, 2) not equal to c("s4", "s3").
     2/2 mismatches
     x[1]: "s3"
     y[1]: "s4"
    
     x[2]: "s2"
     y[2]: "s3"
    
     == testthat results ===========================================================
     OK: 50 SKIPPED: 0 FAILED: 11
     1. Failure: Reinforcement learning performs correctly (@test.ReinforcementLearning.R#11)
     2. Failure: Reinforcement learning performs correctly (@test.ReinforcementLearning.R#12)
     3. Failure: Policy updating performs correctly (@test.ReinforcementLearning.R#40)
     4. Failure: Policy updating performs correctly (@test.ReinforcementLearning.R#41)
     5. Failure: Policy updating performs correctly (@test.ReinforcementLearning.R#48)
     6. Failure: Training examples are sampled correctly (@test.sampleExperience.R#21)
     7. Failure: Training examples are sampled correctly (@test.sampleExperience.R#22)
     8. Failure: Training examples are sampled correctly (@test.sampleExperience.R#24)
     9. Failure: Epsilon-greedy action selection works correctly (@test.sampleExperience.R#59)
     1. ...
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-devel-windows-ix86+x86_64

Version: 1.0.2
Check: whether package can be installed
Result: ERROR
    Installation failed.
Flavor: r-release-linux-x86_64