Running 'testthat.R' [23s/25s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(xpose)
  Loading required package: ggplot2
  
  Attaching package: 'xpose'
  
  The following object is masked from 'package:stats':
  
      filter
  
  > 
  > test_check("xpose")
  -- 1. Error: (unknown) (@test-console_outputs.R#4)  ----------------------------
  'where' must be an environment
  Backtrace:
    8. xpose::vpc_data(., opt = vpc_opt(n_bins = 2), quiet = TRUE)
    2. purrr::discard(...)
    9. purrr::map_at(...)
   17. purrr::map(.x[sel], .f, ...)
   18. xpose:::.f(.x[[i]], ...)
    6. tidyr::gather(., key = "tmp", value = "value", dplyr::matches("\\.(low|med|up)"))
   13. tidyr::separate(...)
   27. ellipsis::check_dots_used()
   29. ellipsis:::exit_handler(action)
   30. base::bquote(...)
  
  -- 2. Error: (unknown) (@test-edits.R#17)  -------------------------------------
  'where' must be an environment
  Backtrace:
    1. xpose::vpc_data(xpdb_ex_pk, opt = vpc_opt(n_bins = 2), quiet = TRUE)
    2. purrr::discard(...)
    9. purrr::map_at(...)
   10. purrr::map(.x[sel], .f, ...)
   11. xpose:::.f(.x[[i]], ...)
    6. tidyr::gather(., key = "tmp", value = "value", dplyr::matches("\\.(low|med|up)"))
   13. tidyr::separate(...)
   20. ellipsis::check_dots_used()
   22. ellipsis:::exit_handler(action)
   23. base::bquote(...)
  
  -- 3. Error: (unknown) (@test-list_nm_tables.R#24)  ----------------------------
  'where' must be an environment
  Backtrace:
   1. xpose::read_nm_model(file = "run001.lst", dir = "data")
   5. tidyr::replace_na(model, replace = list(code = "", comment = ""))
   6. ellipsis::check_dots_used()
   8. ellipsis:::exit_handler(action)
   9. base::bquote(...)
  
  -- 4. Error: (unknown)  --------------------------------------------------------
  'where' must be an environment
  Backtrace:
    1. xpose::xpose_data(...)
    2. xpose::read_nm_model(file = basename(full_path), dir = dirname(full_path))
    6. tidyr::replace_na(model, replace = list(code = "", comment = ""))
    7. ellipsis::check_dots_used()
    9. ellipsis:::exit_handler(action)
   10. base::bquote(...)
  
  -- 5. Error: (unknown) (@test-plots.R#23)  -------------------------------------
  'where' must be an environment
  Backtrace:
    1. xpose::xpose_data(file = "sim.lst", dir = "data", quiet = TRUE)
    2. xpose::read_nm_model(file = basename(full_path), dir = dirname(full_path))
    6. tidyr::replace_na(model, replace = list(code = "", comment = ""))
    7. ellipsis::check_dots_used()
    9. ellipsis:::exit_handler(action)
   10. base::bquote(...)
  
  -- 6. Error: read_nm_files handles one file with inappropriate format (@test-rea
  'where' must be an environment
  Backtrace:
    1. testthat::expect_warning(...)
   30. purrr::map(.$data, .f = raw_to_tibble, sep = sep, file = dat$name)
   31. xpose:::.f(.x[[i]], ...)
    4. x[!x$header, ]
   11. tidyr::separate(., col = "raw", sep = sep, into = header)
   40. ellipsis::check_dots_used()
   42. ellipsis:::exit_handler(action)
   43. base::bquote(...)
  
  -- 7. Error: properly parses a model given via the file and dir arguments (@test
  'where' must be an environment
  Backtrace:
    1. testthat::expect_equal(...)
    4. xpose::read_nm_model(file = "run001.lst", dir = "data")
    8. tidyr::replace_na(model, replace = list(code = "", comment = ""))
    9. ellipsis::check_dots_used()
   11. ellipsis:::exit_handler(action)
   12. base::bquote(...)
  
  -- 8. Error: properly parses a model given via the runno and dir arguments (@tes
  'where' must be an environment
  Backtrace:
    1. testthat::expect_equal(...)
    4. xpose::read_nm_model(runno = "001", ext = ".lst", dir = "data")
    8. tidyr::replace_na(model, replace = list(code = "", comment = ""))
    9. ellipsis::check_dots_used()
   11. ellipsis:::exit_handler(action)
   12. base::bquote(...)
  
  -- 9. Error: properly handles missing code in output file (@test-read_nm_model.R
  'where' must be an environment
  Backtrace:
    1. testthat::expect_warning(...)
    6. xpose::read_nm_model(runno = "002", ext = ".lst", dir = "data")
   10. tidyr::replace_na(model, replace = list(code = "", comment = ""))
   11. ellipsis::check_dots_used()
   13. ellipsis:::exit_handler(action)
   14. base::bquote(...)
  
  -- 10. Error: problem record is present even if no text has been supplied (@test
  'where' must be an environment
  Backtrace:
    1. testthat::expect_true(...)
    5. xpose::read_nm_model(file = "sim.lst", dir = "data")
    9. tidyr::replace_na(model, replace = list(code = "", comment = ""))
   10. ellipsis::check_dots_used()
   12. ellipsis:::exit_handler(action)
   13. base::bquote(...)
  
  -- 11. Error: (unknown) (@test-vpc.R#18)  --------------------------------------
  'where' must be an environment
  Backtrace:
    8. xpose::vpc_data(., opt = vpc_opt(n_bins = 3, lloq = 0.1), quiet = TRUE)
    2. purrr::discard(...)
    9. purrr::map_at(...)
   17. purrr::map(.x[sel], .f, ...)
   18. xpose:::.f(.x[[i]], ...)
    6. tidyr::gather(., key = "tmp", value = "value", dplyr::matches("\\.(low|med|up)"))
   13. tidyr::separate(...)
   27. ellipsis::check_dots_used()
   29. ellipsis:::exit_handler(action)
   30. base::bquote(...)
  
  -- 12. Error: (unknown) (@test-xpdb_access.R#4)  -------------------------------
  'where' must be an environment
  Backtrace:
    8. xpose::vpc_data(., quiet = TRUE)
    2. purrr::discard(...)
    9. purrr::map_at(...)
   17. purrr::map(.x[sel], .f, ...)
   18. xpose:::.f(.x[[i]], ...)
    6. tidyr::gather(., key = "tmp", value = "value", dplyr::matches("\\.(low|med|up)"))
   13. tidyr::separate(...)
   27. ellipsis::check_dots_used()
   29. ellipsis:::exit_handler(action)
   30. base::bquote(...)
  
  -- 13. Error: properly creates the xpdb when using the file argument (@test-xpos
  'where' must be an environment
  Backtrace:
    1. xpose::xpose_data(file = "run001.lst", dir = "data", quiet = TRUE)
    2. xpose::read_nm_model(file = basename(full_path), dir = dirname(full_path))
    6. tidyr::replace_na(model, replace = list(code = "", comment = ""))
    7. ellipsis::check_dots_used()
    9. ellipsis:::exit_handler(action)
   10. base::bquote(...)
  
  -- 14. Error: properly creates the xpdb when using the runno argument (@test-xpo
  'where' must be an environment
  Backtrace:
    1. xpose::xpose_data(...)
    2. xpose::read_nm_model(file = basename(full_path), dir = dirname(full_path))
    6. tidyr::replace_na(model, replace = list(code = "", comment = ""))
    7. ellipsis::check_dots_used()
    9. ellipsis:::exit_handler(action)
   10. base::bquote(...)
  
  -- 15. Error: properly handles errors in tables (@test-xpose_data.R#67)  -------
  'where' must be an environment
  Backtrace:
    1. testthat::expect_warning(...)
    6. xpose::xpose_data(...)
    7. xpose::read_nm_model(file = basename(full_path), dir = dirname(full_path))
   11. tidyr::replace_na(model, replace = list(code = "", comment = ""))
   12. ellipsis::check_dots_used()
   14. ellipsis:::exit_handler(action)
   15. base::bquote(...)
  
  -- 16. Error: properly handles errors in summary (@test-xpose_data.R#78)  ------
  'where' must be an environment
  Backtrace:
    1. testthat::expect_warning(...)
    6. xpose::xpose_data(...)
    7. xpose::read_nm_model(file = basename(full_path), dir = dirname(full_path))
   11. tidyr::replace_na(model, replace = list(code = "", comment = ""))
   12. ellipsis::check_dots_used()
   14. ellipsis:::exit_handler(action)
   15. base::bquote(...)
  
  -- 17. Error: properly handles errors in files (@test-xpose_data.R#86)  --------
  'where' must be an environment
  Backtrace:
    1. testthat::expect_warning(...)
    6. xpose::xpose_data(...)
    7. xpose::read_nm_model(file = basename(full_path), dir = dirname(full_path))
   11. tidyr::replace_na(model, replace = list(code = "", comment = ""))
   12. ellipsis::check_dots_used()
   14. ellipsis:::exit_handler(action)
   15. base::bquote(...)
  
  == testthat results  ===========================================================
  [ OK: 251 | SKIPPED: 4 | WARNINGS: 0 | FAILED: 17 ]
  1. Error: (unknown) (@test-console_outputs.R#4) 
  2. Error: (unknown) (@test-edits.R#17) 
  3. Error: (unknown) (@test-list_nm_tables.R#24) 
  4. Error: (unknown) 
  5. Error: (unknown) (@test-plots.R#23) 
  6. Error: read_nm_files handles one file with inappropriate format (@test-read_nm_files.R#36) 
  7. Error: properly parses a model given via the file and dir arguments (@test-read_nm_model.R#21) 
  8. Error: properly parses a model given via the runno and dir arguments (@test-read_nm_model.R#25) 
  9. Error: properly handles missing code in output file (@test-read_nm_model.R#29) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted