* using log directory 'd:/Rcompile/CRANpkg/local/4.5/admiralmetabolic.Rcheck' * using R version 4.5.2 (2025-10-31 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 * 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 hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'admiralmetabolic' 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 ... [2s] OK * checking whether the package can be loaded with stated dependencies ... [1s] OK * checking whether the package can be unloaded cleanly ... [1s] OK * checking whether the namespace can be loaded with stated dependencies ... [1s] OK * checking whether the namespace can be unloaded cleanly ... [2s] OK * checking loading without being on the library search path ... [2s] 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 ... [4s] 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 contents of 'data' directory ... OK * checking data for non-ASCII characters ... [1s] 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 ... [2s] 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 ... [6s] ERROR Running 'testthat.R' [6s] 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 ... [16s] OK * checking PDF version of manual ... [19s] OK * checking HTML version of manual ... [2s] OK * DONE Status: 2 ERRORs