* using log directory ‘/data/localhost/ripley/R/packages/tests-clang/amp.sim.Rcheck’ * using R Under development (unstable) (2026-09-15 r90540) * using platform: x86_64-pc-linux-gnu * R was compiled by clang version 23.1.1 flang version 23.1.1 * running under: Fedora Linux 44 (Server Edition) * using session charset: UTF-8 * current time: 2026-09-16 12:07:23 UTC * using option ‘--no-stop-on-test-error’ * checking for file ‘amp.sim/DESCRIPTION’ ... OK * this is package ‘amp.sim’ version ‘0.1.1’ * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... INFO Packages suggested but not available for checking: 'nonmem2rx', 'rxode2' * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for executable files ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking whether package ‘amp.sim’ can be installed ... OK See 'https://www.r-project.org/nosvn/R.check/r-devel-linux-x86_64-fedora-clang/amp.sim-00install.html' for details. * 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 ... 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 ... OK * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd line widths ... 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 ... ERROR Running examples in ‘amp.sim-Ex.R’ failed The error most likely occurred in: > ### Name: convert_nonmem > ### Title: Convert NONMEM model to R syntax > ### Aliases: convert_nonmem > > ### ** Examples > > > mod <- system.file("example_models","PK.1CMT.ORAL.mod", package = "amp.sim") > outf <- tempfile() > > convert_nonmem(mod, outf, verbose = FALSE) > readLines(paste0(outf,".cpp")) |> head(n=15) |> cat(sep="\n") $PLUGIN autodec nm-vars Rcpp $PROB 1 CMT PK model with oral absorption $PARAM THETA1 = 0.1, THETA2 = 2, THETA3 = 1 $CMT A1 A2 $PK KA = THETA(1) * exp(ETA(1)) ; CL = THETA(2) * exp(ETA(2)) ; V = THETA(3) ; S2 = V ; > > convert_nonmem(mod, outf, verbose = FALSE, type_return = "nonmem2rx") |> suppressMessages() Error in convert_nonmem(mod, outf, verbose = FALSE, type_return = "nonmem2rx") : the nonmem2rx package should be installed to use this option Calls: suppressMessages -> withCallingHandlers -> convert_nonmem Execution halted * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... [23s/16s] ERROR Running ‘testthat.R’ [23s/16s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(amp.sim) > > test_check("amp.sim") Saving _problems/test_readconvert-324.R [ FAIL 1 | WARN 1 | SKIP 1 | PASS 211 ] ══ Skipped tests (1) ═══════════════════════════════════════════════════════════ • empty test (1): 'test_readconvert.R:217:1' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test_readconvert.R:323:3'): convert_nonmem returns the correctly tranformed model ── Error in `convert_nonmem(paste0(tdir, "/testmodel.mod"), control = "string", out = paste0(tdir, "/testnm2rx"), overwrite = TRUE, type_return = "nonmem2rx")`: the nonmem2rx package should be installed to use this option Backtrace: ▆ 1. ├─base::suppressMessages(...) at test_readconvert.R:323:3 2. │ └─base::withCallingHandlers(...) 3. └─amp.sim::convert_nonmem(...) [ FAIL 1 | WARN 1 | SKIP 1 | PASS 211 ] Error: ! Test failures. Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [29s/32s] OK * checking PDF version of manual ... OK * checking HTML version of manual ... OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 2 ERRORs