* using log directory 'd:/Rcompile/CRANpkg/local/4.1/mkin.Rcheck' * using R version 4.1.3 (2022-03-10) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: ISO8859-1 * using option '--no-vignettes' * checking for file 'mkin/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'mkin' version '1.2.3' * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'mkin' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking 'build' directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [14s] OK * checking Rd files ... [1s] OK * checking Rd metadata ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking contents of 'data' directory ... OK * checking data for non-ASCII characters ... OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking sizes of PDF files under 'inst/doc' ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [11s] ERROR Running examples in 'mkin-Ex.R' failed The error most likely occurred in: > ### Name: logistic.solution > ### Title: Logistic kinetics > ### Aliases: logistic.solution > > ### ** Examples > > > # Reproduce the plot on page 57 of FOCUS (2014) > plot(function(x) logistic.solution(x, 100, 0.08, 0.0001, 0.2), + from = 0, to = 100, ylim = c(0, 100), + xlab = "Time", ylab = "Residue") > plot(function(x) logistic.solution(x, 100, 0.08, 0.0001, 0.4), + from = 0, to = 100, add = TRUE, lty = 2, col = 2) > plot(function(x) logistic.solution(x, 100, 0.08, 0.0001, 0.8), + from = 0, to = 100, add = TRUE, lty = 3, col = 3) > plot(function(x) logistic.solution(x, 100, 0.08, 0.001, 0.2), + from = 0, to = 100, add = TRUE, lty = 4, col = 4) > plot(function(x) logistic.solution(x, 100, 0.08, 0.08, 0.2), + from = 0, to = 100, add = TRUE, lty = 5, col = 5) > legend("topright", inset = 0.05, + legend = paste0("k0 = ", c(0.0001, 0.0001, 0.0001, 0.001, 0.08), + ", r = ", c(0.2, 0.4, 0.8, 0.2, 0.2)), + lty = 1:5, col = 1:5) > > # Fit with synthetic data > logistic <- mkinmod(parent = mkinsub("logistic")) > > sampling_times = c(0, 1, 3, 7, 14, 28, 60, 90, 120) > parms_logistic <- c(kmax = 0.08, k0 = 0.0001, r = 0.2) > d_logistic <- mkinpredict(logistic, + parms_logistic, c(parent = 100), + sampling_times) Error in .C("unlock_solver") : "unlock_solver" not resolved from current namespace (deSolve) Calls: mkinpredict -> mkinpredict.mkinmod -> -> lsoda -> .C Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [115s] ERROR Running 'testthat.R' [114s] 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 * checking for unstated dependencies in vignettes ... OK * checking package vignettes in 'inst/doc' ... OK * checking running R code from vignettes ... SKIPPED * checking re-building of vignette outputs ... SKIPPED * checking PDF version of manual ... OK * DONE Status: 2 ERRORs