* using log directory 'd:/Rcompile/CRANpkg/local/4.4/xportr.Rcheck' * using R version 4.4.3 (2025-02-28 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.3.0 GNU Fortran (GCC) 13.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'xportr/DESCRIPTION' ... OK * this is package 'xportr' version '0.4.2' * 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 'xportr' 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 whether startup messages can be suppressed ... [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 ... [7s] 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 data for ASCII and uncompressed saves ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [4s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [81s] ERROR Running 'testthat.R' [81s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(xportr) > > test_check("xportr") -- Domain not found in metadata. -- Domain 'df2' not found in metadata 'dataset' column. -- Variable type mismatches found. -- v 2 variables coerced -- Variable type mismatches found. -- v 2 variables coerced -- Variable lengths missing from metadata. -- v 30 lengths resolved `RFXSTDTC`, `RFXENDTC`, `RFICDTC`, `RFPENDTC`, `DTHDTC`, `ARMCD`, `ACTARMCD`, `ACTARM`, `COUNTRY`, `DMDTC`, `DMDY`, `TRTSDTM`, `TRTSTMF`, `TRTEDTM`, `TRTETMF`, `SCRFDT`, `EOSDT`, `FRVDT`, `RANDDT`, `DTHDT`, `DTHDTF`, `DTHADY`, `LDDTHELD`, `LSTALVDT`, `RACEGR1`, `REGION1`, `LDDTHGR1`, `DTH30FL`, `DTHA30FL`, and `DTHB30FL` -- Variable labels missing from metadata. -- v 30 labels skipped -- 30 variables not in spec and moved to end -- -- 42 reordered in dataset -- -- Variable lengths missing from metadata. -- v 30 lengths resolved `RFXSTDTC`, `RFXENDTC`, `RFICDTC`, `RFPENDTC`, `DTHDTC`, `ARMCD`, `ACTARMCD`, `ACTARM`, `COUNTRY`, `DMDTC`, `DMDY`, `TRTSDTM`, `TRTSTMF`, `TRTEDTM`, `TRTETMF`, `SCRFDT`, `EOSDT`, `FRVDT`, `RANDDT`, `DTHDT`, `DTHDTF`, `DTHADY`, `LDDTHELD`, `LSTALVDT`, `RACEGR1`, `REGION1`, `LDDTHGR1`, `DTH30FL`, `DTHA30FL`, and `DTHB30FL` -- Variable labels missing from metadata. -- v 30 labels skipped -- 30 variables not in spec and moved to end -- -- 42 reordered in dataset -- -- All variables in dataset are found in `metadata` -- -- All variables in dataset are ordered -- Variable type mismatches found. 2 variables coerced v Metadata successfully imported i To use the Metacore object with metatools package, first subset a dataset using `metacore::select_dataset()` -- Variable type mismatches found. -- v 2 variables coerced [ FAIL 2 | WARN 0 | SKIP 1 | PASS 274 ] ══ Skipped tests (1) ═══════════════════════════════════════════════════════════ • test_large_files is not TRUE (1): 'test-write.R:288:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-length.R:148:3'): length Test 5: Metacore instance can be used ── Error in `pull(., label)`: Caused by error: ! object 'label' not found Backtrace: ▆ 1. ├─base::suppressMessages(...) at test-length.R:148:3 2. │ └─base::withCallingHandlers(...) 3. ├─base::suppressWarnings(...) 4. │ └─base::withCallingHandlers(...) 5. ├─metacore::metacore(...) 6. │ └─MetaCore$new(...) 7. │ └─metacore (local) initialize(...) 8. │ └─ds_spec %>% pull(label) 9. ├─dplyr::pull(., label) 10. ├─dplyr:::pull.data.frame(., label) 11. │ └─tidyselect::vars_pull(names(.data), !!enquo(var)) 12. │ ├─tidyselect:::with_chained_errors(...) 13. │ │ └─base::withCallingHandlers(...) 14. │ └─rlang::eval_tidy(expr, set_names(seq_along(vars), vars)) 15. └─base::.handleSimpleError(...) 16. └─tidyselect (local) h(simpleError(msg, call)) 17. └─cli::cli_abort(c(i = msg), call = call, parent = cnd) 18. └─rlang::abort(...) ── Error ('test-order.R:57:3'): order Test 4: Variable are ordered correctly for metacore spec ── Error in `pull(., label)`: Caused by error: ! object 'label' not found Backtrace: ▆ 1. ├─base::suppressMessages(...) at test-order.R:57:3 2. │ └─base::withCallingHandlers(...) 3. ├─base::suppressWarnings(...) 4. │ └─base::withCallingHandlers(...) 5. ├─metacore::metacore(...) 6. │ └─MetaCore$new(...) 7. │ └─metacore (local) initialize(...) 8. │ └─ds_spec %>% pull(label) 9. ├─dplyr::pull(., label) 10. ├─dplyr:::pull.data.frame(., label) 11. │ └─tidyselect::vars_pull(names(.data), !!enquo(var)) 12. │ ├─tidyselect:::with_chained_errors(...) 13. │ │ └─base::withCallingHandlers(...) 14. │ └─rlang::eval_tidy(expr, set_names(seq_along(vars), vars)) 15. └─base::.handleSimpleError(...) 16. └─tidyselect (local) h(simpleError(msg, call)) 17. └─cli::cli_abort(c(i = msg), call = call, parent = cnd) 18. └─rlang::abort(...) [ FAIL 2 | WARN 0 | SKIP 1 | PASS 274 ] Error: Test failures Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [18s] OK * checking PDF version of manual ... [24s] OK * checking HTML version of manual ... [5s] OK * DONE Status: 1 ERROR