R Under development (unstable) (2025-11-06 r88990 ucrt) -- "Unsuffered Consequences" Copyright (C) 2025 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview > # * https://testthat.r-lib.org/articles/special-files.html > > library(testthat) > library(shinytest2) > library(aNCA) > > test_check("aNCA") Joining with `by = join_by(ATPTREF)` * USUBJID -> id * PARAM -> analyte * DOSETRT -> drug * AVAL -> CONC * AVALU -> CONC_unit * DOSE -> dose * ADOSEDUR -> dosedur * AFRLT -> TIME * ATPTREF -> DOSNO Row 1: Converted volume from 1 L to 1000 mL based on concentration unit ug/mL Row 1: Converted volume from 2 mL to 2 g based on concentration unit mg/g Row 1: Converted volume from 1 L to 1000 mL based on concentration unit ug/mL Row 2: Converted volume from 0.5 mL to 0.5 g based on concentration unit mg/g Loading required namespace: ggh4x Failed with error: 'unused argument (silently = TRUE)' Failed with error: 'unused argument (silently = TRUE)' Failed with error: 'unused argument (silently = TRUE)' Failed with error: 'unused argument (silently = TRUE)' [ FAIL 4 | WARN 0 | SKIP 13 | PASS 746 ] ══ Skipped tests (13) ══════════════════════════════════════════════════════════ • On CRAN (12): 'test-g_pkcg.R:14:5', 'test-g_pkcg.R:29:5', 'test-g_pkcg.R:44:5', 'test-g_pkcg.R:88:5', 'test-g_pkcg.R:127:5', 'test-g_pkcg.R:135:5', 'test-g_pkcg.R:149:5', 'test-g_pkcg.R:170:5', 'test-g_pkcg.R:183:5', 'test-g_pkcg.R:229:5', 'test-g_pkcg.R:274:5', 'test-g_pkcg.R:285:5' • Skipping (1): 'test-e2e-runner.R:5:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-read_pk.R:27:5'): read_pk: reads excel data correctly ────────── Error in `readers[[format]](path)`: Handling .xlsx files requires `openxlsx2` package, please install it with `install.packages('openxlsx2')` Backtrace: ▆ 1. └─aNCA::read_pk(tmp_xlsx) at test-read_pk.R:27:5 2. ├─aNCA:::validate_pk(readers[[format]](path)) 3. └─readers[[format]](path) ── Error ('test-read_pk.R:39:5'): read_pk: reads sas data correctly ──────────── Error in `readers[[format]](path)`: Handling .sas7bdat files requires `haven` package, please install it with `install.packages('haven')` Backtrace: ▆ 1. └─aNCA::read_pk(tmp_sas) at test-read_pk.R:39:5 2. ├─aNCA:::validate_pk(readers[[format]](path)) 3. └─readers[[format]](path) ── Error ('test-read_pk.R:51:5'): read_pk: reads xpt files correctly ─────────── Error in `readers[[format]](path)`: Handling .xpt files requires `haven` package, please install it with `install.packages('haven')` Backtrace: ▆ 1. └─aNCA::read_pk(tmp_xpt) at test-read_pk.R:51:5 2. ├─aNCA:::validate_pk(readers[[format]](path)) 3. └─readers[[format]](path) ── Error ('test-read_pk.R:63:5'): read_pk: reads parquet files correctly ─────── Error in `readers[[format]](path)`: Handling .parquet files requires `arrow` package, please install it with `install.packages('arrow')` Backtrace: ▆ 1. └─aNCA::read_pk(tmp_parquet) at test-read_pk.R:63:5 2. ├─aNCA:::validate_pk(readers[[format]](path)) 3. └─readers[[format]](path) [ FAIL 4 | WARN 0 | SKIP 13 | PASS 746 ] Deleting unused snapshots: • g_pkcg/combined-lin-plot2.svg • g_pkcg/combined-log-plot2.svg • g_pkcg/combined-sbs-plot2.svg • g_pkcg/lin-plot2.svg • g_pkcg/lin-plot3.svg • g_pkcg/log-plot2.svg • g_pkcg/log-plot3.svg • g_pkcg/sbs-plot2.svg • g_pkcg/sbs-plot3.svg Error: Test failures Execution halted