Running 'testthat.R' [30s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > # this is common code to all the tests, each of which runs test_check with a
  > # different filter:
  > library("icd")
  > library("testthat", warn.conflicts = FALSE, quietly = TRUE)
  > icd:::.show_options()
  $icd.data.who_url
  [1] "https://icd.who.int/browse10"
  
  > # Definitely don't download data on CRAN
  > if (!icd:::.env_var_is_true("NOT_CRAN")) {
  +   old_offline <- options("icd.data.offline" = TRUE)
  +   on.exit(options(old_offline), add = TRUE)
  + } else {
  +   old_offline <- options("icd.data.offline" = FALSE)
  +   on.exit(options(old_offline), add = TRUE)
  + }
  > if (icd:::.env_var_is_true("ICD_TEST_SLOW")) {
  +   old_test_slow <- options("icd.test_slow" = TRUE)
  +   on.exit(options(old_test_slow), add = TRUE)
  + }
  > old_interact <- options("icd.data.interact" = FALSE)
  > on.exit(options(old_interact), add = TRUE)
  > icd:::.show_options()
  $icd.data.interact
  [1] FALSE
  
  $icd.data.offline
  [1] TRUE
  
  $icd.data.who_url
  [1] "https://icd.who.int/browse10"
  
  > testthat::test_check("icd")
  loading helper-base.R
  loading helper-icd10.R
  -- 1. Error: (unknown) (@test-examples.R#12)  ----------------------------------
  (converted from warning) cannot open file 'D:/temp/RtmpSwwpAz/R.INSTALL31ce0250559a3/icd/man/apply_hier.Rd': No such file or directory
  1: testthat::test_examples() at testthat/test-examples.R:12
  2: test_examples_source(path) %||% test_examples_installed(env_test$package)
  3: test_examples_installed(env_test$package)
  4: lapply(Rd, test_rd)
  5: FUN(X[[i]], ...)
  6: test_example(attr(rd, "Rdfile"))
  7: tools::Rd2ex(path, ex_path)
  8: prepare_Rd(Rd, defines = defines, stages = stages, ...)
  9: eval(substitute(parse_Rd(f, encoding = enc, fragment = frag, ...), list(f = Rd, enc = encoding, 
         frag = fragment)))
  10: eval(substitute(parse_Rd(f, encoding = enc, fragment = frag, ...), list(f = Rd, enc = encoding, 
         frag = fragment)))
  11: parse_Rd("D:/temp/RtmpSwwpAz/R.INSTALL31ce0250559a3/icd/man/apply_hier.Rd", encoding = "unknown", 
         fragment = FALSE, ...)
  12: readLines(file, warn = FALSE)
  13: file(con, "r")
  14: .signalSimpleWarning("cannot open file 'D:/temp/RtmpSwwpAz/R.INSTALL31ce0250559a3/icd/man/apply_hier.Rd': No such file or directory", 
         base::quote(file(con, "r")))
  15: withRestarts({
         .Internal(.signalCondition(simpleWarning(msg, call), msg, call))
         .Internal(.dfltWarn(msg, call))
     }, muffleWarning = function() NULL)
  16: withOneRestart(expr, restarts[[1L]])
  17: doWithOneRestart(return(expr), restart)
  
  == testthat results  ===========================================================
  [ OK: 5963 | SKIPPED: 35 | WARNINGS: 0 | FAILED: 1 ]
  1. Error: (unknown) (@test-examples.R#12) 
  
  Error: testthat unit tests failed
  Execution halted