Last updated on 2021-04-16 22:50:50 CEST.
Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
---|---|---|---|---|---|---|
r-devel-linux-x86_64-debian-clang | 0.3.1 | 8.89 | 210.07 | 218.96 | OK | |
r-devel-linux-x86_64-debian-gcc | 0.3.1 | 7.02 | 156.78 | 163.80 | OK | |
r-devel-linux-x86_64-fedora-clang | 0.3.1 | 283.37 | NOTE | |||
r-devel-linux-x86_64-fedora-gcc | 0.3.1 | 255.88 | NOTE | |||
r-devel-windows-ix86+x86_64 | 0.3.1 | 20.00 | 282.00 | 302.00 | OK | |
r-devel-windows-x86_64-gcc10-UCRT | 0.3.1 | ERROR | ||||
r-patched-linux-x86_64 | 0.3.1 | 7.96 | 201.44 | 209.40 | OK | |
r-patched-solaris-x86 | 0.3.1 | 387.50 | NOTE | |||
r-release-linux-x86_64 | 0.3.1 | 8.81 | 203.04 | 211.85 | OK | |
r-release-macos-x86_64 | 0.3.1 | NOTE | ||||
r-release-windows-ix86+x86_64 | 0.3.1 | 24.00 | 290.00 | 314.00 | OK | |
r-oldrel-macos-x86_64 | 0.3.1 | ERROR | ||||
r-oldrel-windows-ix86+x86_64 | 0.3.1 | 12.00 | 256.00 | 268.00 | ERROR |
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
Package suggested but not available for checking: 'rstanarm'
Flavor: r-devel-windows-x86_64-gcc10-UCRT
Version: 0.3.1
Check: Rd cross-references
Result: NOTE
Package unavailable to check Rd xrefs: '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 \"rstanarm\" 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:245: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.stanreg(dummy_model)
[ FAIL 2 | WARN 0 | SKIP 0 | PASS 130 ]
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' [53s]
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