CRAN Package Check Results for Package BayesPostEst

Last updated on 2021-03-06 23:48:24 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.3.1 8.28 209.96 218.24 OK
r-devel-linux-x86_64-debian-gcc 0.3.1 6.67 153.95 160.62 OK
r-devel-linux-x86_64-fedora-clang 0.3.1 278.12 NOTE
r-devel-linux-x86_64-fedora-gcc 0.3.1 256.90 NOTE
r-devel-windows-ix86+x86_64 0.3.1 20.00 276.00 296.00 OK
r-devel-windows-x86_64-gcc10-UCRT 0.3.1 ERROR
r-patched-linux-x86_64 0.3.1 7.51 196.44 203.95 OK
r-patched-solaris-x86 0.3.1 380.00 NOTE
r-release-linux-x86_64 0.3.1 8.06 199.46 207.52 OK
r-release-macos-x86_64 0.3.1 NOTE
r-release-windows-ix86+x86_64 0.3.1 15.00 215.00 230.00 OK
r-oldrel-macos-x86_64 0.3.1 ERROR
r-oldrel-windows-ix86+x86_64 0.3.1 12.00 195.00 207.00 ERROR

Check Details

Version: 0.3.1
Check: dependencies in R code
Result: NOTE
    Namespaces in Imports field not imported from:
     ‘HDInterval’ ‘carData’
     All declared Imports should be used.
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64-gcc10-UCRT, r-patched-solaris-x86, r-release-macos-x86_64, r-oldrel-macos-x86_64

Version: 0.3.1
Check: package dependencies
Result: NOTE
    Packages suggested but not available for checking:
     'brms', 'rstan', 'rstanarm'
Flavor: r-devel-windows-x86_64-gcc10-UCRT

Version: 0.3.1
Check: Rd cross-references
Result: NOTE
    Packages unavailable to check Rd xrefs: 'rstan', 'rstanarm'
Flavor: r-devel-windows-x86_64-gcc10-UCRT

Version: 0.3.1
Check: tests
Result: ERROR
     Running 'testthat.R'
    Running the tests in 'tests/testthat.R' failed.
    Last 13 lines of output:
     Expected match: "does not seem to be a binary choice model"
     Actual message: "Package \"brms\" is needed for this function to work. Please install it."
     Backtrace:
     x
     1. +-testthat::expect_error(mcmcRocPrc(dummy_model), "does not seem to be a binary choice model") test_mcmcRocPrc.R:268:2
     2. | \-testthat:::quasi_capture(...)
     3. | +-testthat:::.capture(...)
     4. | | \-base::withCallingHandlers(...)
     5. | \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
     6. +-BayesPostEst::mcmcRocPrc(dummy_model)
     7. \-BayesPostEst:::mcmcRocPrc.brmsfit(dummy_model)
    
     [ FAIL 6 | WARN 2 | SKIP 0 | PASS 125 ]
     Error: Test failures
     Execution halted
Flavor: r-devel-windows-x86_64-gcc10-UCRT

Version: 0.3.1
Check: R code for possible problems
Result: NOTE
    plot.mcmcRocPrc: no visible global function definition for ‘plot’
    Undefined global functions or variables:
     plot
    Consider adding
     importFrom("graphics", "plot")
    to your NAMESPACE file.
Flavors: r-oldrel-macos-x86_64, r-oldrel-windows-ix86+x86_64

Version: 0.3.1
Check: tests
Result: ERROR
     Running ‘testthat.R’ [39s/39s]
    Running the tests in ‘tests/testthat.R’ failed.
    Last 13 lines of output:
     Actual message: "(!is.null(x$roc_dat)) is not TRUE"
     Backtrace:
     █
     1. ├─testthat::expect_error(plot(full_no_curves), "to generate data for plots") test_mcmcRocPrc.R:440:2
     2. │ └─testthat:::quasi_capture(...)
     3. │ ├─testthat:::.capture(...)
     4. │ │ └─base::withCallingHandlers(...)
     5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
     6. ├─graphics::plot(full_no_curves)
     7. └─BayesPostEst:::plot.mcmcRocPrc(full_no_curves)
     8. └─base::stopifnot(...)
    
     [ FAIL 9 | WARN 0 | SKIP 0 | PASS 123 ]
     Error: Test failures
     Execution halted
Flavor: r-oldrel-macos-x86_64

Version: 0.3.1
Check: tests
Result: ERROR
     Running 'testthat.R' [40s]
    Running the tests in 'tests/testthat.R' failed.
    Complete output:
     > library(testthat)
     > library(BayesPostEst)
     >
     > test_check("BayesPostEst")
     Loading required package: rjags
     Loading required package: coda
     Linked to JAGS 4.3.0
     Loaded modules: basemod,bugs
    
     Attaching package: 'R2jags'
    
     The following object is masked from 'package:coda':
    
     traceplot
    
     == Failed tests ================================================================
     -- Failure (test_mcmcRocPrc.R:28:3): constructor rejects invalid input ---------
     `new_mcmcRocPrc(pred_prob[-1, ], yvec, FALSE, FALSE)` threw an error with unexpected message.
     Expected match: "number of predictions and observed outcomes do not match"
     Actual message: "nrow(pred_prob) == length(yvec) is not TRUE"
     Backtrace:
     x
     1. +-testthat::expect_error(...) test_mcmcRocPrc.R:28:2
     2. | \-testthat:::quasi_capture(...)
     3. | +-testthat:::.capture(...)
     4. | | \-base::withCallingHandlers(...)
     5. | \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
     6. \-BayesPostEst:::new_mcmcRocPrc(pred_prob[-1, ], yvec, FALSE, FALSE)
     7. \-base::stopifnot(...)
     -- Failure (test_mcmcRocPrc.R:35:3): constructor rejects invalid input ---------
     `new_mcmcRocPrc(pred_prob, tmp, FALSE, FALSE)` threw an error with unexpected message.
     Expected match: "yvec must be 0 or 1"
     Actual message: "all(yvec %in% c(0L, 1L)) is not TRUE"
     Backtrace:
     x
     1. +-testthat::expect_error(...) test_mcmcRocPrc.R:35:2
     2. | \-testthat:::quasi_capture(...)
     3. | +-testthat:::.capture(...)
     4. | | \-base::withCallingHandlers(...)
     5. | \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
     6. \-BayesPostEst:::new_mcmcRocPrc(pred_prob, tmp, FALSE, FALSE)
     7. \-base::stopifnot(...)
     -- Failure (test_mcmcRocPrc.R:42:3): constructor rejects invalid input ---------
     `new_mcmcRocPrc(tmp, yvec, FALSE, FALSE)` threw an error with unexpected message.
     Expected match: "must be in the interval"
     Actual message: "all(pred_prob >= 0 & pred_prob <= 1) is not TRUE"
     Backtrace:
     x
     1. +-testthat::expect_error(...) test_mcmcRocPrc.R:42:2
     2. | \-testthat:::quasi_capture(...)
     3. | +-testthat:::.capture(...)
     4. | | \-base::withCallingHandlers(...)
     5. | \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
     6. \-BayesPostEst:::new_mcmcRocPrc(tmp, yvec, FALSE, FALSE)
     7. \-base::stopifnot(...)
     -- Failure (test_mcmcRocPrc.R:51:3): .default method rejects invalid input -----
     `mcmcRocPrc(pred_prob[, 1], FALSE, FALSE, yvec)` threw an error with unexpected message.
     Expected match: "requires 'matrix'"
     Actual message: "inherits(pred_prob, \"matrix\") is not TRUE"
     Backtrace:
     x
     1. +-testthat::expect_error(...) test_mcmcRocPrc.R:51:2
     2. | \-testthat:::quasi_capture(...)
     3. | +-testthat:::.capture(...)
     4. | | \-base::withCallingHandlers(...)
     5. | \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
     6. +-BayesPostEst::mcmcRocPrc(pred_prob[, 1], FALSE, FALSE, yvec)
     7. \-BayesPostEst:::mcmcRocPrc.default(...)
     8. \-base::stopifnot(...)
     -- Failure (test_mcmcRocPrc.R:428:3): plot method gives informative errors -----
     `plot(no_curves)` threw an error with unexpected message.
     Expected match: "to generate data for plots"
     Actual message: "(!is.null(x$roc_dat)) is not TRUE"
     Backtrace:
     x
     1. +-testthat::expect_error(plot(no_curves), "to generate data for plots") test_mcmcRocPrc.R:428:2
     2. | \-testthat:::quasi_capture(...)
     3. | +-testthat:::.capture(...)
     4. | | \-base::withCallingHandlers(...)
     5. | \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
     6. +-graphics::plot(no_curves)
     7. \-BayesPostEst:::plot.mcmcRocPrc(no_curves)
     8. \-base::stopifnot(...)
     -- Failure (test_mcmcRocPrc.R:429:3): plot method gives informative errors -----
     `plot(with_curves, n = 0)` threw an error with unexpected message.
     Expected match: "n must be"
     Actual message: "(n > 0) is not TRUE"
     Backtrace:
     x
     1. +-testthat::expect_error(plot(with_curves, n = 0), "n must be") test_mcmcRocPrc.R:429:2
     2. | \-testthat:::quasi_capture(...)
     3. | +-testthat:::.capture(...)
     4. | | \-base::withCallingHandlers(...)
     5. | \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
     6. +-graphics::plot(with_curves, n = 0)
     7. \-BayesPostEst:::plot.mcmcRocPrc(with_curves, n = 0)
     8. \-base::stopifnot(...)
     -- Failure (test_mcmcRocPrc.R:430:3): plot method gives informative errors -----
     `plot(with_curves, alpha = 5)` threw an error with unexpected message.
     Expected match: "alpha must be"
     Actual message: "(alpha >= 0 & alpha <= 1) is not TRUE"
     Backtrace:
     x
     1. +-testthat::expect_error(plot(with_curves, alpha = 5), "alpha must be") test_mcmcRocPrc.R:430:2
     2. | \-testthat:::quasi_capture(...)
     3. | +-testthat:::.capture(...)
     4. | | \-base::withCallingHandlers(...)
     5. | \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
     6. +-graphics::plot(with_curves, alpha = 5)
     7. \-BayesPostEst:::plot.mcmcRocPrc(with_curves, alpha = 5)
     8. \-base::stopifnot(...)
     -- Failure (test_mcmcRocPrc.R:439:3): plot method works ------------------------
     `plot(no_curves)` threw an error with unexpected message.
     Expected match: "to generate data for plots"
     Actual message: "(!is.null(x$roc_dat)) is not TRUE"
     Backtrace:
     x
     1. +-testthat::expect_error(plot(no_curves), "to generate data for plots") test_mcmcRocPrc.R:439:2
     2. | \-testthat:::quasi_capture(...)
     3. | +-testthat:::.capture(...)
     4. | | \-base::withCallingHandlers(...)
     5. | \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
     6. +-graphics::plot(no_curves)
     7. \-BayesPostEst:::plot.mcmcRocPrc(no_curves)
     8. \-base::stopifnot(...)
     -- Failure (test_mcmcRocPrc.R:440:3): plot method works ------------------------
     `plot(full_no_curves)` threw an error with unexpected message.
     Expected match: "to generate data for plots"
     Actual message: "(!is.null(x$roc_dat)) is not TRUE"
     Backtrace:
     x
     1. +-testthat::expect_error(plot(full_no_curves), "to generate data for plots") test_mcmcRocPrc.R:440:2
     2. | \-testthat:::quasi_capture(...)
     3. | +-testthat:::.capture(...)
     4. | | \-base::withCallingHandlers(...)
     5. | \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
     6. +-graphics::plot(full_no_curves)
     7. \-BayesPostEst:::plot.mcmcRocPrc(full_no_curves)
     8. \-base::stopifnot(...)
    
     [ FAIL 9 | WARN 0 | SKIP 0 | PASS 123 ]
     Error: Test failures
     Execution halted
Flavor: r-oldrel-windows-ix86+x86_64