Running ‘spelling.R’ [0s/0s]
  Running ‘testthat.R’ [2s/72s]
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(earthdatalogin)
  > 
  > test_check("earthdatalogin")
  Saving _problems/test-edl_netrc-24.R
  Saving _problems/test-list-nasa-stacs-24.R
  [ FAIL 2 | WARN 1 | SKIP 11 | PASS 1 ]
  
  ══ Skipped tests (11) ══════════════════════════════════════════════════════════
  • On CRAN (9): 'test-edl_download.R:3:3', 'test-edl_download.R:24:3',
    'test-edl_download.R:45:3', 'test-edl_netrc.R:2:3', 'test-edl_search.R:3:3',
    'test-edl_set_token.R:2:3', 'test-list-nasa-stacs.R:2:3',
    'test-list-nasa-stacs.R:14:3', 'test-stac-collections_fetch.R:2:3'
  • Only works inside AWS US-West-2 (2): 'test-edl_s3.R:4:3',
    'test-edl_s3.R:15:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-edl_netrc.R:24:3'): netcdf access ──────────────────────────────
  Error in `utils::download.file(href, renviron, quiet = TRUE)`: cannot open URL 'https://raw.githubusercontent.com/boettiger-lab/earthdatalogin/main/inst/.Renviron'
  Backtrace:
      ▆
   1. └─earthdatalogin::edl_netrc() at test-edl_netrc.R:24:3
   2.   ├─base::paste(...)
   3.   └─earthdatalogin:::default("user")
   4.     └─utils::download.file(href, renviron, quiet = TRUE)
  ── Error ('test-list-nasa-stacs.R:24:3'): get_nasa_stac_url() fails correctly ──
  <curl_error_operation_timedout/curl_error/error/condition>
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached [cmr.earthdata.nasa.gov]:
  Resolving timed out after 10001 milliseconds
  Backtrace:
       ▆
    1. ├─testthat::expect_error(get_nasa_stac_url("notadaac"), "notadaac not found in stacs") at test-list-nasa-stacs.R:24:3
    2. │ └─testthat:::expect_condition_matching_(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. ├─earthdatalogin::get_nasa_stac_url("notadaac")
    8. │ └─earthdatalogin::list_nasa_stacs(cloud_only = cloud_only)
    9. │   └─httr::GET(cmr_stac_url)
   10. │     └─httr:::request_perform(req, hu$handle$handle)
   11. │       ├─httr:::request_fetch(req$output, req$url, handle)
   12. │       └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   13. │         └─curl::curl_fetch_memory(url, handle = handle)
   14. └─curl:::raise_libcurl_error(...)
  
  [ FAIL 2 | WARN 1 | SKIP 11 | PASS 1 ]
  Error:
  ! Test failures.
  Execution halted