Skip to content

R CMD check failure #1143

@Andrew-Acker125

Description

@Andrew-Acker125

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions