- using R Under development (unstable) (2026-03-01 r89506)
- using platform: aarch64-apple-darwin23
- R was compiled by
Apple clang version 17.0.0 (clang-1700.3.19.1)
GNU Fortran (GCC) 14.2.0
- running under: macOS Sequoia 15.7.1
- using session charset: UTF-8
* current time: 2026-03-13 13:47:40 UTC
- checking for file ‘amp.dm/DESCRIPTION’ ... OK
- this is package ‘amp.dm’ version ‘0.2.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 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.dm’ can be installed ... [1s/1s] OK
See the install log 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 ... [0s/0s] OK
- checking whether the package can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the package can be unloaded cleanly ... [0s/0s] OK
- checking whether the namespace can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the namespace can be unloaded cleanly ... [0s/0s] OK
- checking loading without being on the library search path ... [0s/0s] 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 ... [1s/1s] OK
- checking Rd files ... [0s/0s] 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 sizes of PDF files under ‘inst/doc’ ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [1s/2s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [2s/2s] ERROR
Running ‘testthat.R’ [2s/2s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(amp.dm)
>
> test_check("amp.dm")
Read 3 items
Saving _problems/test_dataio-60.R
Saving _problems/test_dataio-73.R
Saving _problems/test_dosefunc-119.R
Saving _problems/test_tabulate-15.R
Saving _problems/test_tabulate-36.R
Saving _problems/test_tabulate-136.R
[ FAIL 6 | WARN 105 | SKIP 0 | PASS 272 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test_dataio.R:60:3'): make_readonly correctly sets reaonly attribute ──
<EACCES/fs_error/error/condition>
Error: [EACCES] Failed to stat '/Volumes/Temp/tmp/RtmpJ8QFpn/file3acc4cfe1633.txt': permission denied
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test_dataio.R:60:3
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─base::substr(fs::file_info(tmpfn2)$permissions, 1, 3)
5. └─fs::file_info(tmpfn2)
── Error ('test_dataio.R:73:3'): output_data correctly outputs data ────────────
Error in `file(file, "rt")`: cannot open the connection
Backtrace:
▆
1. └─utils::read.csv(paste0(tmpf, ".csv"), stringsAsFactors = FALSE) at test_dataio.R:73:3
2. └─utils::read.table(...)
3. └─base::file(file, "rt")
── Failure ('test_dosefunc.R:119:3'): impute_dose correctly creates additional dose records ──
Expected `as.character(check$dt[check$ID == 1 & check$type == "additional"])[1]` to equal "2016-02-15 04:44:00".
Differences:
1/1 mismatches
x[1]: "2016-02-14 04:44:00"
y[1]: "2016-02-15 04:44:00"
── Error ('test_tabulate.R:15:3'): general_tbl correctly creates generic latex table, file or passes data frame ──
Error in `file(file, ifelse(append, "a", "w"))`: cannot open the connection
Backtrace:
▆
1. └─amp.dm::general_tbl(Theoph, outnm = tmpf1, ret = "file", show = FALSE) at test_tabulate.R:15:3
2. └─R3port::ltx_list(data, out = outnm, mancol = align, ...)
3. └─base::cat(tbl, sep = "\n", file = rawout)
4. └─base::file(file, ifelse(append, "a", "w"))
── Error ('test_tabulate.R:36:3'): define_tbl correctly tabulates attributes ───
Error in `file(file, ifelse(append, "a", "w"))`: cannot open the connection
Backtrace:
▆
1. └─amp.dm::define_tbl(attrl, outnm = tmpf1, ret = "file", show = FALSE) at test_tabulate.R:36:3
2. └─amp.dm::general_tbl(...)
3. └─R3port::ltx_list(data, out = outnm, mancol = align, ...)
4. └─base::cat(tbl, sep = "\n", file = rawout)
5. └─base::file(file, ifelse(append, "a", "w"))
── Error ('test_tabulate.R:136:3'): check_nmdata correctly checks a NONMEM dataset ──
Error in `file(file, ifelse(append, "a", "w"))`: cannot open the connection
Backtrace:
▆
1. └─utils::write.table(...)
2. └─base::file(file, ifelse(append, "a", "w"))
[ FAIL 6 | WARN 105 | SKIP 0 | PASS 272 ]
Error:
! Test failures.
Execution halted
rm: /Volumes/Temp/tmp/RtmpJ8QFpn: Permission denied
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [4s/4s] OK
- checking PDF version of manual ... [2s/2s] OK
- DONE
Status: 1 ERROR
- using check arguments '--no-clean-on-error '