Running 'testthat.R' [32s]
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/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(ebvcube)
  > 
  > test_check("ebvcube")
  [1] "Giving the properties for the file and a specified datacube."
  [1] "Giving the properties for the file and a specified datacube."
  [1] "Giving the properties for the file and a specified datacube."
  [1] "Giving the properties for the file and a specified datacube."
  [1] "Giving the properties for the file and a specified datacube."
  [1] "Giving the properties for the file and a specified datacube."
  [1] "Giving the properties for the file. For more info on a specific datacube, define the metric and scenario OR datacubepath."
  [1] "Giving the properties for the file. For more info on a specific datacube, define the metric and scenario OR datacubepath."
  [1] "Giving the properties for the file. For more info on a specific datacube, define the metric and scenario OR datacubepath."
  [1] "Giving the properties for the file. For more info on a specific datacube, define the metric and scenario OR datacubepath."
  [1] "Giving the properties for the file and a specified datacube."
  [1] "Giving the properties for the file and a specified datacube."
  [1] "Giving the properties for the file and a specified datacube."
  [1] "Giving the properties for the file and a specified datacube."
  [1] "Giving the properties for the file and a specified datacube."
  [1] "Giving the properties for the file and a specified datacube."
  [1] "Giving the properties for the file and a specified datacube."
  [1] "Giving the properties for the file and a specified datacube."
  [ FAIL 3 | WARN 7 | SKIP 0 | PASS 194 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-download.R:4:3'): test ebv_download ID=numeric ─────────────────
  Error in `open.connection(con, "rb")`: cannot open the connection to 'https://portal.geobon.org/api/v1/datasets'
  Backtrace:
      ▆
   1. └─ebvcube::ebv_download(27, dir) at test-download.R:4:3
   2.   └─jsonlite::fromJSON("https://portal.geobon.org/api/v1/datasets")
   3.     └─jsonlite:::parse_and_simplify(...)
   4.       └─jsonlite:::parseJSON(txt, bigint_as_char)
   5.         └─jsonlite:::parse_con(txt, bigint_as_char)
   6.           ├─base::open(con, "rb")
   7.           └─base::open.connection(con, "rb")
  ── Error ('test-download.R:10:3'): test ebv_download ID=doi ────────────────────
  Error in `open.connection(con, "rb")`: cannot open the connection to 'https://portal.geobon.org/api/v1/datasets'
  Backtrace:
      ▆
   1. └─ebvcube::ebv_download("10.25829/f2rdp4", dir) at test-download.R:10:3
   2.   └─jsonlite::fromJSON("https://portal.geobon.org/api/v1/datasets")
   3.     └─jsonlite:::parse_and_simplify(...)
   4.       └─jsonlite:::parseJSON(txt, bigint_as_char)
   5.         └─jsonlite:::parse_con(txt, bigint_as_char)
   6.           ├─base::open(con, "rb")
   7.           └─base::open.connection(con, "rb")
  ── Error ('test-download.R:16:3'): test ebv_download ID=title ──────────────────
  Error in `open.connection(con, "rb")`: cannot open the connection to 'https://portal.geobon.org/api/v1/datasets'
  Backtrace:
      ▆
   1. └─ebvcube::ebv_download(...) at test-download.R:16:3
   2.   └─jsonlite::fromJSON("https://portal.geobon.org/api/v1/datasets")
   3.     └─jsonlite:::parse_and_simplify(...)
   4.       └─jsonlite:::parseJSON(txt, bigint_as_char)
   5.         └─jsonlite:::parse_con(txt, bigint_as_char)
   6.           ├─base::open(con, "rb")
   7.           └─base::open.connection(con, "rb")
  
  [ FAIL 3 | WARN 7 | SKIP 0 | PASS 194 ]
  Error: Test failures
  Execution halted