- 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 'wru/DESCRIPTION' ... OK
- this is package 'wru' version '3.0.3'
- 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 'wru' can be installed ... OK
See the install log for details.
- used C++ compiler: 'g++.exe (GCC) 14.3.0'
- checking C++ specification ... OK
- checking installed package size ... INFO
installed size is 6.5Mb
sub-directories of 1Mb or more:
data 3.4Mb
help 1.9Mb
- checking package 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 ... [1s] OK
- checking loading without being on the library search path ... [2s] OK
- checking whether startup messages can be suppressed ... [1s] 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 ... [8s] 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 line endings in C/C++/Fortran sources/headers ... OK
- checking line endings in Makefiles ... OK
- checking compilation flags in Makevars ... OK
- checking for GNU extensions in Makefiles ... OK
- checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK
- checking use of PKG_*FLAGS in Makefiles ... OK
- checking pragmas in C/C++ headers and code ... OK
- checking compiled code ... OK
- checking examples ... [3s] OK
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [35s] ERROR
Running 'testthat.R' [35s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(wru)
Please cite as:
Khanna K, Bertelsen B, Olivella S, Rosenman E, Rossell Hayes A, Imai K
(2024). _wru: Who are You? Bayesian Prediction of Racial Category Using
Surname, First Name, Middle Name, and Geolocation_.
doi:10.32614/CRAN.package.wru
<https://doi.org/10.32614/CRAN.package.wru>, R package version 3.0.3,
<https://CRAN.R-project.org/package=wru>.
Note that wru 2.0.0 uses 2020 census data by default.
Use the argument `year = "2010"`, to replicate analyses produced with earlier package versions.
>
> test_check("wru")
Predicting race for 2010
Predicting race for 2010
Proceeding with last name predictions...
Request failed [504]. Retrying in 1.8 seconds...
Request failed [504]. Retrying in 3.7 seconds...
Saving _problems/test-predict_race_2010-188.R
Predicting race for 2020
[ FAIL 1 | WARN 0 | SKIP 25 | PASS 10 ]
══ Skipped tests (25) ══════════════════════════════════════════════════════════
• On CRAN (19): 'test-format_legacy_data.R:5:3',
'test-predict_race_2010.R:8:3', 'test-predict_race_2010.R:24:3',
'test-predict_race_2010.R:46:3', 'test-predict_race_2010.R:70:3',
'test-predict_race_2010.R:94:3', 'test-predict_race_2010.R:129:3',
'test-predict_race_2010.R:146:3', 'test-predict_race_2010.R:163:3',
'test-predict_race_2020.R:8:3', 'test-predict_race_2020.R:20:3',
'test-predict_race_2020.R:35:3', 'test-predict_race_2020.R:56:3',
'test-predict_race_2020.R:79:3', 'test-predict_race_2020.R:102:3',
'test-predict_race_2020.R:136:3', 'test-predict_race_2020.R:152:3',
'test-predict_race_2020.R:168:3', 'test-predict_race_2020.R:189:3'
• empty test (2): ,
• nzchar(Sys.getenv("CENSUS_API_KEY")) is not TRUE (4):
'test-census_geo_api.R:1:1', 'test-census_helper.R:8:1',
'test-census_helper_v2.R:8:1', 'test-race_prediction_funs.R:8:1'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-predict_race_2010.R:188:3'): Fixes for issue #68 work as expected ──
Error in `readRDS(paste0(path, "/wru-data-mid_c.rds"))`: unknown input format
Backtrace:
▆
1. └─wru::predict_race(...) at test-predict_race_2010.R:188:3
2. └─wru:::predict_race_new(...)
3. └─base::readRDS(paste0(path, "/wru-data-mid_c.rds"))
[ FAIL 1 | WARN 0 | SKIP 25 | PASS 10 ]
Error:
! Test failures.
Execution halted
- checking PDF version of manual ... [21s] OK
- checking HTML version of manual ... [5s] OK
- DONE
Status: 1 ERROR