Running ‘testthat.R’ [3s/5s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(epwshiftr)
  > 
  > test_check("epwshiftr")
  ── 1. Error: Query ESGF (@test-esgf.R#5)  ──────────────────────────────────────
  cannot open the connection to 'http://esgf-node.llnl.gov/esg-search/search/?project=CMIP6&activity_id=ScenarioMIP&experiment_id=ssp126%2Cssp245%2Cssp370%2Cssp585&source_id=AWI-CM-1-1-MR&variable_id=tas&nominal_resolution=100km%2C50km%2C100+km%2C50+km&variant_label=r1i1p1f1&frequency=day&replica=false&latest=true&type=Dataset&limit=1&format=application%2Fsolr%2Bjson'
  Backtrace:
    1. testthat::expect_silent(...)
    9. epwshiftr::esgf_query(...)
   10. jsonlite::read_json(q)
   11. jsonlite::parse_json(...)
   12. jsonlite:::parse_and_simplify(...)
   13. jsonlite:::parseJSON(txt, bigint_as_char)
   14. jsonlite:::parse_con(txt, bigint_as_char)
   16. base::open.connection(con, "rb")
  
  ── 2. Error: Build CMIP6 file index database (@test-esgf.R#71)  ────────────────
  cannot open the connection to 'http://esgf-node.llnl.gov/esg-search/search/?project=CMIP6&activity_id=ScenarioMIP&experiment_id=ssp126%2Cssp245%2Cssp370%2Cssp585&source_id=AWI-CM-1-1-MR&variable_id=tas&nominal_resolution=100km%2C50km%2C100+km%2C50+km&variant_label=r1i1p1f1&frequency=day&replica=false&latest=true&type=Dataset&limit=1&format=application%2Fsolr%2Bjson'
  Backtrace:
    1. testthat::expect_silent(...)
    9. epwshiftr::init_cmip6_index(...)
   10. epwshiftr::esgf_query(...)
   11. jsonlite::read_json(q)
   12. jsonlite::parse_json(...)
   13. jsonlite:::parse_and_simplify(...)
   14. jsonlite:::parseJSON(txt, bigint_as_char)
   15. jsonlite:::parse_con(txt, bigint_as_char)
   17. base::open.connection(con, "rb")
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 3 | SKIPPED: 1 | WARNINGS: 0 | FAILED: 2 ]
  1. Error: Query ESGF (@test-esgf.R#5) 
  2. Error: Build CMIP6 file index database (@test-esgf.R#71) 
  
  Error: testthat unit tests failed
  Execution halted