Running ‘testthat.R’ [109s/124s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > Sys.setenv("R_TESTS" = "")
  > library(testthat)
  > library(RxODE)
  > test_check("RxODE")
  ── 1. Error: Issue #56 (@test-issue-56.R#9)  ───────────────────────────────────
  Error building model
  1: RxODE(model = ode, modName = "m1", wd = "/tmp") at testthat/test-issue-56.R:9
  2: .env$compile()
  3: with(<environment>, {
         .lwd <- getwd()
         if (!file.exists(wd)) 
             dir.create(wd, recursive = TRUE)
         if (file.exists(wd)) 
             setwd(wd)
         on.exit(setwd(.lwd))
         if (missing.modName) {
             .rxDll <- RxODE::rxCompile(.mv, extraC = extraC, debug = debug, package = NULL)
         }
         else {
             .rxDll <- RxODE::rxCompile(.mv, dir = mdir, extraC = extraC, debug = debug, 
                 modName = modName, package = NULL)
         }
         assign("rxDll", .rxDll, envir = <environment>)
         assign(".mv", .rxDll$modVars, envir = <environment>)
     })
  4: with.default(<environment>, {
         .lwd <- getwd()
         if (!file.exists(wd)) 
             dir.create(wd, recursive = TRUE)
         if (file.exists(wd)) 
             setwd(wd)
         on.exit(setwd(.lwd))
         if (missing.modName) {
             .rxDll <- RxODE::rxCompile(.mv, extraC = extraC, debug = debug, package = NULL)
         }
         else {
             .rxDll <- RxODE::rxCompile(.mv, dir = mdir, extraC = extraC, debug = debug, 
                 modName = modName, package = NULL)
         }
         assign("rxDll", .rxDll, envir = <environment>)
         assign(".mv", .rxDll$modVars, envir = <environment>)
     })
  5: eval(substitute(expr), data, enclos = parent.frame())
  6: eval(substitute(expr), data, enclos = parent.frame())
  7: RxODE::rxCompile(.mv, dir = mdir, extraC = extraC, debug = debug, modName = modName, 
         package = NULL)
  8: rxCompile.rxModelVars(.mv, dir = mdir, extraC = extraC, debug = debug, modName = modName, 
         package = NULL)
  9: .badBuild("Error building model")
  10: stop(msg, call. = FALSE)
  
  [====|====|====|====|====|====|====|====|====|====
  [====|====|====|====|====|====|====|====|====|====Error : Could not find package root.
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 1045 | SKIPPED: 1 | WARNINGS: 1 | FAILED: 1 ]
  1. Error: Issue #56 (@test-issue-56.R#9) 
  
  Error: testthat unit tests failed
  Execution halted