Running ‘testthat.R’ [24s/66s]
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(ChinAPIs)
  > 
  > test_check("ChinAPIs")
  World Bank API request failed: Timeout was reached [api.worldbank.org]:
  Operation timed out after 10002 milliseconds with 0 bytes received
  `year` must be a single numeric value.
  `year` must be a single numeric value.
  `year` must be a single numeric value.
  Nager.Date API returned status: 400
  Nager.Date API returned status: 400
  World Bank API request failed: Timeout was reached [api.worldbank.org]:
  Operation timed out after 10004 milliseconds with 0 bytes received
  Saving _problems/test-get_country_info_cn-12.R
  Datasets available in the 'ChinAPIs' package:
  Datasets available in the 'ChinAPIs' package:
  [ FAIL 1 | WARN 0 | SKIP 17 | PASS 4086 ]
  
  ══ Skipped tests (17) ══════════════════════════════════════════════════════════
  • Function returned NULL (12): 'test-get_china_energy_use.R:15:3',
    'test-get_china_energy_use.R:25:3', 'test-get_china_energy_use.R:34:3',
    'test-get_china_energy_use.R:41:3', 'test-get_china_energy_use.R:48:3',
    'test-get_china_energy_use.R:60:3', 'test-get_china_unemployment.R:15:3',
    'test-get_china_unemployment.R:25:3', 'test-get_china_unemployment.R:34:3',
    'test-get_china_unemployment.R:41:3', 'test-get_china_unemployment.R:48:3',
    'test-get_china_unemployment.R:57:3'
  • On CRAN (5): 'test-get_china_child_mortality.R:12:3',
    'test-get_china_child_mortality.R:30:3',
    'test-get_china_child_mortality.R:40:3',
    'test-get_china_child_mortality.R:50:3',
    'test-get_china_child_mortality.R:58:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-get_country_info_cn.R:12:1'): (code run outside of `test_that()`) ──
  Error in `data_list[1, ]`: incorrect number of dimensions
  Backtrace:
      ▆
   1. └─ChinAPIs::get_country_info_cn() at test-get_country_info_cn.R:12:1
  
  [ FAIL 1 | WARN 0 | SKIP 17 | PASS 4086 ]
  Error:
  ! Test failures.
  Execution halted