- using R Under development (unstable) (2026-01-13 r89301)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
clang version 21.1.8
flang version 21.1.8
- running under: Fedora Linux 42 (Workstation Edition)
- using session charset: UTF-8
- using option ‘--no-stop-on-test-error’
- checking for file ‘admiralmetabolic/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘admiralmetabolic’ 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 ‘admiralmetabolic’ can be installed ... [11s/24s] 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 ... 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/39s] 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 contents of ‘data’ directory ... OK
- checking data for non-ASCII characters ... OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... ERROR
Running examples in ‘admiralmetabolic-Ex.R’ failed
The error most likely occurred in:
> ### Name: derive_param_waisthgt
> ### Title: Adds a Parameter for Waist to Height Ratio
> ### Aliases: derive_param_waisthgt
> ### Keywords: der_prm_advs
>
> ### ** Examples
>
> library(tibble)
> library(rlang)
>
> # Example 1: Derive Waist to Height Ratio where Height is measured only once
>
> advs <- tribble(
+ ~USUBJID, ~PARAMCD, ~PARAM, ~AVAL, ~AVALU, ~VISIT,
+ "01-101-1001", "HEIGHT", "Height (cm)", 147, "cm", "SCREENING",
+ "01-101-1001", "WSTCIR", "Waist Circumference (cm)", 110, "cm", "SCREENING",
+ "01-101-1001", "WSTCIR", "Waist Circumference (cm)", 108, "cm", "WEEK 2",
+ "01-101-1001", "WSTCIR", "Waist Circumference (cm)", 107, "cm", "WEEK 3",
+ "01-101-1002", "HEIGHT", "Height (cm)", 163, "cm", "SCREENING",
+ "01-101-1002", "WSTCIR", "Waist Circumference (cm)", 120, "cm", "SCREENING",
+ "01-101-1002", "WSTCIR", "Waist Circumference (cm)", 118, "cm", "WEEK 2",
+ "01-101-1002", "WSTCIR", "Waist Circumference (cm)", 117, "cm", "WEEK 3",
+ )
>
> derive_param_waisthgt(
+ advs,
+ by_vars = exprs(USUBJID, VISIT),
+ wstcir_code = "WSTCIR",
+ height_code = "HEIGHT",
+ set_values_to = exprs(
+ PARAMCD = "WAISTHGT",
+ PARAM = "Waist to Height Ratio"
+ ),
+ constant_by_vars = exprs(USUBJID),
+ get_unit_expr = admiral::extract_unit(PARAM)
+ )
Error in inner_join(hori_data, hori_const_data, by = vars2chr(constant_by_vars)) :
could not find function "inner_join"
Calls: derive_param_waisthgt -> derive_param_ratio -> derive_param_computed
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [13s/32s] ERROR
Running ‘testthat.R’ [12s/30s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat) # nolint: undesirable_function_linter
> library(admiralmetabolic) # nolint: undesirable_function_linter
>
> test_check("admiralmetabolic")
Saving _problems/test-derive_param_ratio-77.R
Saving _problems/test-derive_param_ratio-127.R
i Unit conversion performed for "HIPCIR". Values converted from "in" to "cm".
Saving _problems/test-derive_param_waisthgt-26.R
i Unit conversion performed for "HEIGHT". Values converted from "cm" to "in".
Saving _problems/test-derive_param_waisthgt-123.R
i Unit conversion performed for "HIPCIR". Values converted from "cm" to "in".
[ FAIL 4 | WARN 0 | SKIP 0 | PASS 9 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-derive_param_ratio.R:66:5'): derive_param_computed Test 2: Cross-check with derive_param_computed(),
new observations with constant denominator ──
Error in `inner_join(hori_data, hori_const_data, by = vars2chr(constant_by_vars))`: could not find function "inner_join"
Backtrace:
▆
1. └─admiralmetabolic:::derive_param_ratio(...) at test-derive_param_ratio.R:66:5
2. └─admiral::derive_param_computed(...)
── Error ('test-derive_param_ratio.R:116:5'): derive_param_computed Test 3: Cross-check with derive_param_computed(),
new observations with constant numerator ──
Error in `inner_join(hori_data, hori_const_data, by = vars2chr(constant_by_vars))`: could not find function "inner_join"
Backtrace:
▆
1. └─admiralmetabolic:::derive_param_ratio(...) at test-derive_param_ratio.R:116:5
2. └─admiral::derive_param_computed(...)
── Error ('test-derive_param_waisthgt.R:17:5'): derive_param_waisthgt Test 1: Cross-check with admiral::derive_param_computed(),
new observations with constant Height ──
Error in `inner_join(hori_data, hori_const_data, by = vars2chr(constant_by_vars))`: could not find function "inner_join"
Backtrace:
▆
1. └─admiralmetabolic::derive_param_waisthgt(...) at test-derive_param_waisthgt.R:17:5
2. └─admiralmetabolic:::derive_param_ratio(...)
3. └─admiral::derive_param_computed(...)
── Error ('test-derive_param_waisthgt.R:113:5'): derive_param_waisthgt Test 3: Cross-check with and without units conversion ──
Error in `inner_join(hori_data, hori_const_data, by = vars2chr(constant_by_vars))`: could not find function "inner_join"
Backtrace:
▆
1. ├─... %>% filter(PARAMCD == "WAISTHGT") at test-derive_param_waisthgt.R:113:5
2. ├─dplyr::filter(., PARAMCD == "WAISTHGT")
3. └─admiralmetabolic::derive_param_waisthgt(...)
4. └─admiralmetabolic:::derive_param_ratio(...)
5. └─admiral::derive_param_computed(...)
[ FAIL 4 | WARN 0 | SKIP 0 | PASS 9 ]
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [30s/44s] 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