* using log directory 'd:/Rcompile/CRANpkg/local/4.4/RcensusPkg.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 'RcensusPkg/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'RcensusPkg' version '0.1.5' * 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 'RcensusPkg' can be installed ... OK * checking installed package size ... OK * 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 ... [3s] OK * checking whether the package can be loaded with stated dependencies ... [3s] OK * checking whether the package can be unloaded cleanly ... [3s] OK * checking whether the namespace can be loaded with stated dependencies ... [2s] OK * checking whether the namespace can be unloaded cleanly ... [3s] OK * checking loading without being on the library search path ... [3s] 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 ... [10s] 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 ... [0s] OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking examples ... [14s] ERROR Running examples in 'RcensusPkg-Ex.R' failed The error most likely occurred in: > ### Name: get_geography > ### Title: get_geography > ### Aliases: get_geography > > ### ** Examples > > library(jsonlite) > library(data.table) > library(httr2) > library(RcensusPkg) > # Get the geographies available for dataset "acs/acs1/profile" with vintage 2019 > acs1_profile_geo_dt <- RcensusPkg::get_geography( + dataset = "acs/acs1/profile", + vintage = 2019 + ) Error in value[[3L]](cond) : Error downloading raw json text: Failed to perform HTTP request. Calls: ... tryCatch -> tryCatchList -> tryCatchOne -> Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [102s] ERROR Running 'testthat.R' [101s] Running the tests in 'tests/testthat.R' failed. Complete output: > # 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(RcensusPkg) > > test_check("RcensusPkg") [ FAIL 4 | WARN 0 | SKIP 25 | PASS 134 ] ══ Skipped tests (25) ══════════════════════════════════════════════════════════ • Census Bureau API key required (10): 'test-get_idb_data.R:11:3', 'test-get_idb_data.R:22:3', 'test-get_multi_vintage_data.R:13:3', 'test-get_vintage_data.R:11:3', 'test-get_vintage_data.R:26:3', 'test-join_it.R:12:3', 'test-long_to_wide.R:9:3', 'test-plot_us_data.R:18:3', 'test-plot_us_data.R:36:3', 'test-wide_to_long.R:9:3' • Census Bureau request takes well over 10 seconds in most cases. (1): 'test-get_dataset_names.R:8:3' • On CRAN (14): 'test-get_category_strings.R:6:3', 'test-get_category_strings.R:10:3', 'test-tiger_block_groups_sf.R:13:3', 'test-tiger_cbsa_sf.R:12:3', 'test-tiger_counties_sf.R:13:3', 'test-tiger_county_subsection_sf.R:13:3', 'test-tiger_landmarks_sf.R:13:3', 'test-tiger_places_sf.R:13:3', 'test-tiger_roads_sf.R:13:3', 'test-tiger_states_sf.R:13:3', 'test-tiger_tracts_sf.R:13:3', 'test-tiger_urban_area_sf.R:12:3', 'test-tiger_water_sf.R:13:3', 'test-tiger_zctas_sf.R:12:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-get_geography.R:8:3'): get_geography() ───────────────────────── Error in `value[[3L]](cond)`: Error downloading raw json text: Failed to perform HTTP request. Backtrace: ▆ 1. └─testthat::expect_snapshot(...) at test-get_geography.R:8:3 2. └─rlang::cnd_signal(state$error) ── Error ('test-get_groups.R:8:3'): get_groups() ─────────────────────────────── Error in `value[[3L]](cond)`: Error downloading raw json text: Failed to perform HTTP request. Backtrace: ▆ 1. └─testthat::expect_snapshot(...) at test-get_groups.R:8:3 2. └─rlang::cnd_signal(state$error) ── Error ('test-get_variable_names.R:8:3'): get_variable_names() ─────────────── Error: object 'variables_dt' not found Backtrace: ▆ 1. └─testthat::expect_snapshot(...) at test-get_variable_names.R:8:3 2. └─rlang::cnd_signal(state$error) ── Error ('test-get_variable_names.R:19:3'): get_variable_names() category ───── Error: object 'variables_dt' not found Backtrace: ▆ 1. └─testthat::expect_snapshot(...) at test-get_variable_names.R:19:3 2. └─rlang::cnd_signal(state$error) [ FAIL 4 | WARN 0 | SKIP 25 | PASS 134 ] Error: Test failures Execution halted * checking PDF version of manual ... [20s] OK * checking HTML version of manual ... [7s] OK * DONE Status: 2 ERRORs