* using log directory 'd:/Rcompile/CRANpkg/local/4.7/nlmixr2targets.Rcheck' * using R Under development (unstable) (2026-08-03 r90347 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.3.0 GNU Fortran (GCC) 14.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * current time: 2026-08-04 17:01:49 UTC * checking for file 'nlmixr2targets/DESCRIPTION' ... OK * this is package 'nlmixr2targets' version '0.1.0' * 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 'nlmixr2targets' 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 code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [0s] OK * checking whether the package can be loaded with stated dependencies ... [0s] OK * checking whether the package can be unloaded cleanly ... [0s] OK * checking whether the namespace can be loaded with stated dependencies ... [0s] OK * checking whether the namespace can be unloaded cleanly ... [0s] OK * checking loading without being on the library search path ... [0s] 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 ... [3s] 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 installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [2s] ERROR Running examples in 'nlmixr2targets-Ex.R' failed The error most likely occurred in: > ### Name: tar_nlmixr > ### Title: Generate a set of targets for nlmixr estimation > ### Aliases: tar_nlmixr tar_nlmixr_raw > > ### ** Examples > > pheno <- function() { + ini({ + lcl <- log(0.008); label("Typical value of clearance") + lvc <- log(0.6); label("Typical value of volume of distribution") + etalcl + etalvc ~ c(1, + 0.01, 1) + cpaddSd <- 0.1; label("residual variability") + }) + model({ + cl <- exp(lcl + etalcl) + vc <- exp(lvc + etalvc) + kel <- cl / vc + d / dt(central) <- -kel * central + cp <- central / vc + cp ~ add(cpaddSd) + }) + } > > # Build the four targets that estimate `pheno`. `data` and `est` are > # captured as expressions, so this just returns the target list; the > # estimation step runs only when you call `targets::tar_make()` from a > # project whose targets store you have configured (for example, with > # `targets::tar_config_set(store = file.path(tempdir(), "_targets"))` > # or by running inside a project directory you own). > tar_nlmixr( + name = pheno_model, + object = pheno, + data = nlmixr2data::pheno_sd, + est = "saem" + ) Error in inDL(x, as.logical(local), as.logical(now), ...) : unable to load shared object 'D:/RCompile/CRANpkg/lib/4.7/rxode2/libs/x64/rxode2.dll': LoadLibrary failure: Die angegebene Prozedur wurde nicht gefunden. Calls: tar_nlmixr ... nlmixr_object_protect_zero_initial_helper -> loadNamespace -> library.dynam -> dyn.load -> inDL Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [3s] ERROR Running 'spelling.R' [0s] Running 'testthat.R' [2s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > # Load targets to work around https://github.com/ropensci/targets/issues/642 > library(targets) > library(nlmixr2targets) > > # Remove to replace with on_cran if exported, > # https://github.com/r-lib/testthat/issues/2336 > on_cran_local <- function() { + env <- Sys.getenv("NOT_CRAN") + if (identical(env, "")) { + !interactive() + } else { + !isTRUE(as.logical(env)) + } + } > > if (on_cran_local()) { + rxode2::setRxThreads(1L) + } Error in inDL(x, as.logical(local), as.logical(now), ...) : unable to load shared object 'D:/RCompile/CRANpkg/lib/4.7/rxode2/libs/x64/rxode2.dll': LoadLibrary failure: Die angegebene Prozedur wurde nicht gefunden. Calls: loadNamespace -> library.dynam -> dyn.load -> inDL Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [9s] OK * checking PDF version of manual ... [19s] OK * checking HTML version of manual ... [2s] OK * DONE Status: 2 ERRORs