Running 'testthat.R' [177s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(mkin)
  > 
  > test_check("mkin")
  Error in .C("unlock_solver") : 
    "unlock_solver" not resolved from current namespace (deSolve)
  Error in .C("unlock_solver") : 
    "unlock_solver" not resolved from current namespace (deSolve)
  Error in .C("unlock_solver") : 
    "unlock_solver" not resolved from current namespace (deSolve)
  Error in .C("unlock_solver") : 
    "unlock_solver" not resolved from current namespace (deSolve)
  Error in .C("unlock_solver") : 
    "unlock_solver" not resolved from current namespace (deSolve)
  Error in .C("unlock_solver") : 
    "unlock_solver" not resolved from current namespace (deSolve)
  Error in .C("unlock_solver") : 
    "unlock_solver" not resolved from current namespace (deSolve)
  Error in .C("unlock_solver") : 
    "unlock_solver" not resolved from current namespace (deSolve)
  Error in .C("unlock_solver") : 
    "unlock_solver" not resolved from current namespace (deSolve)
  Error in .C("unlock_solver") : 
    "unlock_solver" not resolved from current namespace (deSolve)
  Error in .C("unlock_solver") : 
    "unlock_solver" not resolved from current namespace (deSolve)
  Error in .C("unlock_solver") : 
    "unlock_solver" not resolved from current namespace (deSolve)
  [ FAIL 4 | WARN 0 | SKIP 31 | PASS 104 ]
  
  == Skipped tests ===============================================================
  * On CRAN (30)
  * This still takes almost 2.5 minutes although we do not solve ODEs (1)
  
  == Failed tests ================================================================
  -- Error ('test_SFORB.R:32:3'): Fitting the SFORB model is equivalent to fitting DFOP --
  Error in `.C("unlock_solver")`: "unlock_solver" not resolved from current namespace (deSolve)
  Backtrace:
      x
   1. +-mkin::mkinfit(SFORB_SFO, DFOP_par_c, quiet = TRUE) at test_SFORB.R:32:2
   2. | +-base::system.time(...)
   3. | \-stats::nlminb(...)
   4. \-mkin (local) objective(.par, ...)
   5.   +-mkin::mkinpredict(...)
   6.   \-mkin:::mkinpredict.mkinmod(...)
   7.     \-deSolve::lsoda(...)
  -- Error ('test_logistic.R:7:1'): (code run outside of `test_that()`) ----------
  Error in `.C("unlock_solver")`: "unlock_solver" not resolved from current namespace (deSolve)
  Backtrace:
      x
   1. +-mkin::mkinpredict(...) at test_logistic.R:7:0
   2. \-mkin:::mkinpredict.mkinmod(...)
   3.   \-deSolve::ode(...)
   4.     \-deSolve::lsoda(y, times, func, parms, ...)
  -- Error ('test_mkinpredict_SFO_SFO.R:18:3'): Variants of model predictions for SFO_SFO model give equivalent results --
  Error in `.C("unlock_solver")`: "unlock_solver" not resolved from current namespace (deSolve)
  Backtrace:
      x
   1. +-base::subset(...) at test_mkinpredict_SFO_SFO.R:18:2
   2. +-base::as.data.frame(...)
   3. +-mkin::mkinpredict(...)
   4. \-mkin:::mkinpredict.mkinmod(...)
   5.   \-deSolve::lsoda(...)
  -- Error ('test_nlme.R:10:3'): nlme_function works correctly -------------------
  Error in `.C("unlock_solver")`: "unlock_solver" not resolved from current namespace (deSolve)
  Backtrace:
      x
   1. +-mkin::mkinpredict(m_SFO, c(k_parent = 0.1), c(parent = 98), sampling_times) at test_nlme.R:10:2
   2. \-mkin:::mkinpredict.mkinmod(...)
   3.   \-deSolve::ode(...)
   4.     \-deSolve::lsoda(y, times, func, parms, ...)
  
  [ FAIL 4 | WARN 0 | SKIP 31 | PASS 104 ]
  Deleting unused snapshots:
  * multistart/llhist-for-dfop-sfo-fit.svg
  * multistart/llhist-for-sfo-fit.svg
  * multistart/mixed-model-fit-for-saem-object-with-mkin-transformations.svg
  * multistart/parplot-for-dfop-sfo-fit.svg
  * multistart/parplot-for-sfo-fit.svg
  * nafta/nafta-sop-appendix-b.svg
  * nafta/plot-nafta-analysis.svg
  * plot/mixed-model-fit-for-mmkin-object.svg
  * plot/mixed-model-fit-for-nlme-object.svg
  * plot/mixed-model-fit-for-saem-object-with-saemix-transformations.svg
  * plot/mkinerrplot-for-focus-c-sfo.svg
  * plot/mkinfit-plot-for-focus-c-with-defaults.svg
  * plot/mkinfit-plot-for-focus-c-with-residuals-like-in-gmkin.svg
  * plot/mkinfit-plot-for-focus-c-with-sep-true.svg
  * plot/mkinparplot-for-focus-c-sfo.svg
  * plot/mmkin-plot-for-focus-c.svg
  * plot/mmkin-plot-for-sfo-focus-c-and-d.svg
  * plot/plot-err-for-focus-d.svg
  * plot/plot-errmod-with-focus-c-tc.svg
  * plot/plot-errmod-with-focus-d-obs-eigen.svg
  * plot/plot-res-for-focus-c.svg
  * plot/plot-res-for-focus-d.svg
  Error: Test failures
  Execution halted