Last updated on 2025-08-31 15:48:58 CEST.
Package | ERROR | OK |
---|---|---|
pricesensitivitymeter | 1 | 12 |
Current CRAN status: ERROR: 1, OK: 12
Version: 1.3.1
Check: tests
Result: ERROR
Running ‘testthat.R’ [11s/13s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
>
> # Source all R files since package may not be installed
> r_files <- list.files("../../R", pattern = "\\.R$", full.names = TRUE)
> for (file in r_files) {
+ source(file, local = FALSE)
+ }
>
> test_check("pricesensitivitymeter")
Loading required package: pricesensitivitymeter
[ FAIL 4 | WARN 4 | SKIP 1 | PASS 776 ]
══ Skipped tests (1) ═══════════════════════════════════════════════════════════
• empty test (1): 'test_data_output_weighted.R:288:1'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test_data_output.R:64:3'): Data Output: Matrices have rows and columns ──
ncol(psm_result1$data_input) not equal to 4.
1/1 mismatches
[1] 5 - 4 == 1
── Failure ('test_data_output.R:67:3'): Data Output: Matrices have rows and columns ──
ncol(psm_result2$data_input) not equal to 8.
1/1 mismatches
[1] 9 - 8 == 1
── Failure ('test_data_output.R:73:3'): Data Output: Numeric Data in Matrices ──
unique(sapply(psm_result1$data_input, is.numeric)) is not TRUE
`actual`: TRUE FALSE
`expected`: TRUE
── Failure ('test_data_output.R:76:3'): Data Output: Numeric Data in Matrices ──
unique(sapply(psm_result2$data_input, is.numeric)) is not TRUE
`actual`: TRUE FALSE
`expected`: TRUE
[ FAIL 4 | WARN 4 | SKIP 1 | PASS 776 ]
Error: Test failures
Execution halted
Flavor: r-patched-linux-x86_64