Running 'testthat.R' [135s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(dgo)
  Loading required package: dgodata
  Loading required package: rstan
  Loading required package: StanHeaders
  Loading required package: ggplot2
  rstan (Version 2.19.2, GitRev: 2e1f913d3ca3)
  For execution on a local, multicore CPU with excess RAM we recommend calling
  options(mc.cores = parallel::detectCores()).
  To avoid recompilation of unchanged Stan programs, we recommend calling
  rstan_options(auto_write = TRUE)
  For improved execution time, we recommend calling
  Sys.setenv(LOCAL_CPPFLAGS = '-march=native')
  although this causes Stan to throw an error on a few processors.
  > 
  > # https://stackoverflow.com/questions/12410694/rbundler-build-error-cannot-open-file-startup-rs-no-such-file-or-directory#27994299
  > Sys.setenv("R_TESTS" = "")
  > test_check("dgo")
  -- 1. Error: (unknown) (@test-dgirt.r#1)  --------------------------------------
  Compilation ERROR, function(s)/method(s) not created! In file included from D:/temp/RtmpWqj6nH/RLIBS_2f7d455997593/StanHeaders/include/stan/math/prim/arr/functor/integrate_ode_rk45.hpp:17:0,
                   from D:/temp/RtmpWqj6nH/RLIBS_2f7d455997593/StanHeaders/include/stan/math/prim/arr.hpp:46,
                   from D:/temp/RtmpWqj6nH/RLIBS_2f7d455997593/StanHeaders/include/stan/math/prim/mat.hpp:344,
                   from D:/temp/RtmpWqj6nH/RLIBS_2f7d455997593/StanHeaders/include/stan/math/rev/mat.hpp:12,
                   from D:/temp/RtmpWqj6nH/RLIBS_2f7d455997593/StanHeaders/include/stan/math.hpp:4,
                   from D:/temp/RtmpWqj6nH/RLIBS_2f7d455997593/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file2ec9c130b5903.cpp:8:
  D:/temp/RtmpWqj6nH/RLIBS_2f7d455997593/BH/include/boost/numeric/odeint.hpp:31:76: fatal error: boost/numeric/odeint/stepper/runge_kutta_cash_karp54_classic.hpp: No such file or directory
   #include <boost/numeric/odeint/stepper/runge_kutta_cash_karp54_classic.hpp>
                                                                              ^
  compilation terminated.
  make[1]: *** [file2ec9c130b5903.o] Error 1
  Backtrace:
    1. base::suppressWarnings(dgirt(toy_dgirt_in, iter = 1, chains = 1))
    3. dgo::dgirt(toy_dgirt_in, iter = 1, chains = 1)
    4. dgo:::fit_dgo_model(...)
    5. rstan::stan_model(stanc_ret = stanc_ret)
    6. rstan:::cxxfunctionplus(...)
   10. inline::cxxfunction(...)
   11. inline:::compileCode(f, code, language = language, verbose = verbose)
  
  -- 2. Error: (unknown) (@test-dgirt.r#1)  --------------------------------------
  invalid connection
  Backtrace:
   1. base::suppressWarnings(dgirt(toy_dgirt_in, iter = 1, chains = 1))
   3. dgo::dgirt(toy_dgirt_in, iter = 1, chains = 1)
   4. dgo:::fit_dgo_model(...)
   5. rstan::stan_model(stanc_ret = stanc_ret)
   6. rstan:::cxxfunctionplus(...)
   7. base::sink(type = "output")
  
  == testthat results  ===========================================================
  [ OK: 373 | SKIPPED: 1 | WARNINGS: 0 | FAILED: 2 ]
  1. Error: (unknown) (@test-dgirt.r#1) 
  2. Error: (unknown) (@test-dgirt.r#1) 
  
  Error: testthat unit tests failed
  Execution halted