We've been running R CMD check on packages for our package registry manager PRISM (Home | PRISM) and noticed that cmdstanr 0.9.0 is failing during tests with 1 failure. This appears related to data.table 1.18.0, as the test passes with an older version of data.table.
The full error output:
checking tests Running testthat.R
Running the tests in tests/testthat.R failed.
Last 13 lines of output:
3. testthat (local) .capture(...)
4. base::withCallingHandlers(...)
5. rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
6. cmdstanr::read_cmdstan_csv(file_path)
7. cmdstanr:::read_csv_metadata(output_file)
8. base::suppressWarnings(...)
9. base::withCallingHandlers(...)
10. data.table::fread(...)
11. data.table:::stopf(...)
12. data.table:::raise_condition(...)
[ FAIL 1 | WARN 1 | SKIP 4 | PASS 1918 ]
Error: ! Test failures. Execution halted
Here is the failing test:
test_that("read_cmdstan_csv() fails with empty csv file", {
file_path <- test_path("resources", "csv", "empty.csv")
file.create(file_path)
expect_error(read_cmdstan_csv(file_path),
"Supplied CSV file is corrupt!")
file.remove(file_path)
})
Happy to provide any more details or clarity if needed.
We've been running
R CMD checkon packages for our package registry manager PRISM (Home | PRISM) and noticed thatcmdstanr 0.9.0is failing during tests with 1 failure. This appears related todata.table 1.18.0, as the test passes with an older version ofdata.table.The full error output:
Here is the failing test:
Happy to provide any more details or clarity if needed.