Running ‘testthat.R’ [15s/597s]
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 2 | WARN 0 | SKIP 27 | PASS 134 ]
  
  ══ Skipped tests (27) ══════════════════════════════════════════════════════════
  • 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 (16): 'test-get_category_strings.R:6:3',
    'test-get_category_strings.R:10:3', 'test-get_geography.R:8:3',
    'test-get_groups.R:8: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_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 2 | WARN 0 | SKIP 27 | PASS 134 ]
  Error: Test failures
  Execution halted