CRAN Package Check Results for Package posterior

Last updated on 2022-08-12 06:49:28 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.2.2 9.48 146.25 155.73 ERROR
r-devel-linux-x86_64-debian-gcc 1.2.2 7.76 100.47 108.23 ERROR
r-devel-linux-x86_64-fedora-clang 1.2.2 187.82 OK
r-devel-linux-x86_64-fedora-gcc 1.2.2 184.33 OK
r-devel-windows-x86_64 1.2.2 101.00 195.00 296.00 OK
r-patched-linux-x86_64 1.2.2 15.87 131.73 147.60 OK
r-release-linux-x86_64 1.2.2 10.59 132.18 142.77 OK
r-release-macos-arm64 1.2.2 56.00 OK
r-release-macos-x86_64 1.2.2 73.00 OK
r-release-windows-x86_64 1.2.2 74.00 199.00 273.00 OK
r-oldrel-macos-arm64 1.2.2 58.00 OK
r-oldrel-macos-x86_64 1.2.2 74.00 OK
r-oldrel-windows-ix86+x86_64 1.2.2 25.00 190.00 215.00 OK

Check Details

Version: 1.2.2
Check: tests
Result: ERROR
     Running 'testthat.R' [32s/39s]
    Running the tests in 'tests/testthat.R' failed.
    Complete output:
     > library(testthat)
     > library(posterior)
     This is posterior version 1.2.2
    
     Attaching package: 'posterior'
    
     The following objects are masked from 'package:stats':
    
     mad, sd, var
    
     >
     > test_check("posterior")
     [ FAIL 2 | WARN 4 | SKIP 4 | PASS 1004 ]
    
     == Skipped tests ===============================================================
     * On CRAN (4)
    
     == Failed tests ================================================================
     -- Failure (test-print.R:117:3): print.draws_rvars handles reserved variables correctly --
     `print\(x, max_variables = 1\)` does not match "tau".
     Actual value: "# A draws_rvars: 100 iterations, 4 chains, and 2 variables\\n\$tau: rvar<100,4>\[1\] mean \\xb1 sd:\\n\[1\] 4\.2 \\xb1 3\.6 \\n\\n# \.\.\. with 1 more variables\\n# \.\.\. hidden reserved variables \{'\.log_weight'\}"
     Backtrace:
     x
     1. \-testthat::expect_output(print(x, max_variables = 1), "tau") at test-print.R:117:2
     2. \-testthat::expect_match(...)
     3. \-testthat:::expect_match_(...)
     -- Failure (test-print.R:118:3): print.draws_rvars handles reserved variables correctly --
     `print\(x\)` does not match "hidden reserved variables ..\\.log_weight..".
     Actual value: "# A draws_rvars: 100 iterations, 4 chains, and 2 variables\\n\$tau: rvar<100,4>\[1\] mean \\xb1 sd:\\n\[1\] 4\.2 \\xb1 3\.6 \\n\\n\$theta: rvar<100,4>\[8\] mean \\xb1 sd:\\n\[1\] 6\.7 \\xb1 6\.3 5\.3 \\xb1 4\.6 3\.0 \\xb1 6\.8 4\.9 \\xb1 4\.9 3\.2 \\xb1 5\.1 4\.0 \\xb1 5\.2 6\.5 \\xb1 5\.3 \\n\[8\] 4\.6 \\xb1 5\.3 \\n\\n# \.\.\. hidden reserved variables \{'\.log_weight'\}"
     Backtrace:
     x
     1. \-testthat::expect_output(print(x), "hidden reserved variables ..\\.log_weight..") at test-print.R:118:2
     2. \-testthat::expect_match(...)
     3. \-testthat:::expect_match_(...)
    
     [ FAIL 2 | WARN 4 | SKIP 4 | PASS 1004 ]
     Error: Test failures
     Execution halted
Flavor: r-devel-linux-x86_64-debian-clang

Version: 1.2.2
Check: package dependencies
Result: NOTE
    Package suggested but not available for checking: ‘gbm’
Flavor: r-devel-linux-x86_64-debian-gcc

Version: 1.2.2
Check: tests
Result: ERROR
     Running ‘testthat.R’ [17s/26s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library(testthat)
     > library(posterior)
     This is posterior version 1.2.2
    
     Attaching package: 'posterior'
    
     The following objects are masked from 'package:stats':
    
     mad, sd, var
    
     >
     > test_check("posterior")
     [ FAIL 4 | WARN 0 | SKIP 4 | PASS 1000 ]
    
     ══ Skipped tests ═══════════════════════════════════════════════════════════════
     • On CRAN (4)
    
     ══ Failed tests ════════════════════════════════════════════════════════════════
     ── Error (test-rstar.R:33:3): rstar with uncertainty returns vectors of correct length ──
     Error: Required packages are missing: gbm
     Backtrace:
     ▆
     1. └─posterior::rstar(x, method = "gbm", uncertainty = T, verbose = F) at test-rstar.R:33:2
     2. ├─caret::train(...)
     3. └─caret:::train.formula(...)
     4. ├─caret::train(x, y, weights = w, ...)
     5. └─caret:::train.default(x, y, weights = w, ...)
     6. └─caret::checkInstall(models$library)
     ── Error (test-rstar.R:49:3): rstar with uncertainty returns reasonable values ──
     Error: Required packages are missing: gbm
     Backtrace:
     ▆
     1. └─posterior::rstar(x, method = "gbm", uncertainty = T, verbose = F) at test-rstar.R:49:2
     2. ├─caret::train(...)
     3. └─caret:::train.formula(...)
     4. ├─caret::train(x, y, weights = w, ...)
     5. └─caret:::train.default(x, y, weights = w, ...)
     6. └─caret::checkInstall(models$library)
     ── Error (test-rstar.R:56:3): rstar accepts different classifiers ──────────────
     Error: Required packages are missing: gbm
     Backtrace:
     ▆
     1. └─posterior::rstar(x, method = "gbm", verbose = F) at test-rstar.R:56:2
     2. ├─caret::train(...)
     3. └─caret:::train.formula(...)
     4. ├─caret::train(x, y, weights = w, ...)
     5. └─caret:::train.default(x, y, weights = w, ...)
     6. └─caret::checkInstall(models$library)
     ── Error (test-rstar.R:72:3): rstar accepts different hyperparameters ──────────
     Error: Required packages are missing: gbm
     Backtrace:
     ▆
     1. └─posterior::rstar(x, method = "gbm", verbose = F, hyperparameters = caret_grid) at test-rstar.R:72:2
     2. ├─caret::train(...)
     3. └─caret:::train.formula(...)
     4. ├─caret::train(x, y, weights = w, ...)
     5. └─caret:::train.default(x, y, weights = w, ...)
     6. └─caret::checkInstall(models$library)
    
     [ FAIL 4 | WARN 0 | SKIP 4 | PASS 1000 ]
     Error: Test failures
     Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc