Running ‘testthat.R’ [3s/435s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > options(java.parameters = '-Xmx2G')
  > 
  > library(testthat)
  > library(r5r)
  Loading required namespace: sf
  Loading required namespace: rJava
  Please make sure you have already allocated some memory to Java by running:
    options(java.parameters = '-Xmx2G')
  > 
  > test_check("r5r")
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  ● On CRAN (6)
  
  ══ Warnings ════════════════════════════════════════════════════════════════════
  ── Warning (test-download_r5.R:6:3): download_r5 - expected behavior ───────────
  cannot open URL 'https://www.ipea.gov.br/geobr/r5r/metadata.csv': HTTP status was '502 Bad Gateway'
  Backtrace:
    1. testthat::expect_vector(download_r5(force_update = T)) test-download_r5.R:6:2
    4. r5r::download_r5(force_update = T)
    5. r5r:::download_metadata()
   11. base::open.connection(...)
  ── Warning (test-download_r5.R:18:3): download_r5 - expected errors ────────────
  cannot open URL 'https://www.ipea.gov.br/geobr/r5r/metadata.csv': HTTP status was '502 Bad Gateway'
  Backtrace:
    1. testthat::expect_error(download_r5(version = "0")) test-download_r5.R:18:2
    6. r5r::download_r5(version = "0")
    7. r5r:::download_metadata()
   13. base::open.connection(...)
  ── Warning (test-download_r5.R:19:3): download_r5 - expected errors ────────────
  cannot open URL 'https://www.ipea.gov.br/geobr/r5r/metadata.csv': HTTP status was '503 Service Unavailable'
  Backtrace:
    1. testthat::expect_error(download_r5(version = NULL)) test-download_r5.R:19:2
    6. r5r::download_r5(version = NULL)
    7. r5r:::download_metadata()
   13. base::open.connection(...)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-download_r5.R:6:3): download_r5 - expected behavior ─────────────
  Error: Internet connection problem. If this is not a connection problem in your network, please try r5r again in a few minutes.
  Backtrace:
      █
   1. ├─testthat::expect_vector(download_r5(force_update = T)) test-download_r5.R:6:2
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─r5r::download_r5(force_update = T)
   5.   └─r5r:::download_metadata()
  
  [ FAIL 1 | WARN 3 | SKIP 6 | PASS 5 ]
  Error: Test failures
  In addition: Warning messages:
  1: In if (isTRUE(opt)) { :
    closing unused connection 6 (https://www.ipea.gov.br/geobr/r5r/metadata.csv)
  2: In if (isTRUE(opt)) { :
    closing unused connection 5 (https://www.ipea.gov.br/geobr/r5r/metadata.csv)
  Execution halted