Running 'testthat.R' [3s/8s]
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 -----------
  URL https://www.ipea.gov.br/geobr/r5r/metadata.csv: cannot open destfile '/tmp/RtmpQ8z5aq/RLIBS_4fac135e166f/r5r/jar/metadata.csv', reason 'Read-only file system'
  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()
   6. utils::download.file(...)
  -- Warning (test-download_r5.R:6:3): download_r5 - expected behavior -----------
  download had nonzero exit status
  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()
   6. utils::download.file(...)
  -- Warning (test-download_r5.R:6:3): download_r5 - expected behavior -----------
  cannot open file '/tmp/RtmpQ8z5aq/RLIBS_4fac135e166f/r5r/jar/metadata.csv': No such file or directory
  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()
   6. utils::read.csv(...)
   7. utils::read.table(...)
   8. base::file(file, "rt")
  -- Warning (test-download_r5.R:18:3): download_r5 - expected errors ------------
  URL https://www.ipea.gov.br/geobr/r5r/metadata.csv: cannot open destfile '/tmp/RtmpQ8z5aq/RLIBS_4fac135e166f/r5r/jar/metadata.csv', reason 'Read-only file system'
  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()
   8. utils::download.file(...)
  -- Warning (test-download_r5.R:18:3): download_r5 - expected errors ------------
  download had nonzero exit status
  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()
   8. utils::download.file(...)
  -- Warning (test-download_r5.R:18:3): download_r5 - expected errors ------------
  cannot open file '/tmp/RtmpQ8z5aq/RLIBS_4fac135e166f/r5r/jar/metadata.csv': No such file or directory
  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()
    8. utils::read.csv(...)
    9. utils::read.table(...)
   10. base::file(file, "rt")
  -- Warning (test-download_r5.R:19:3): download_r5 - expected errors ------------
  URL https://www.ipea.gov.br/geobr/r5r/metadata.csv: cannot open destfile '/tmp/RtmpQ8z5aq/RLIBS_4fac135e166f/r5r/jar/metadata.csv', reason 'Read-only file system'
  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()
   8. utils::download.file(...)
  -- Warning (test-download_r5.R:19:3): download_r5 - expected errors ------------
  download had nonzero exit status
  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()
   8. utils::download.file(...)
  -- Warning (test-download_r5.R:19:3): download_r5 - expected errors ------------
  cannot open file '/tmp/RtmpQ8z5aq/RLIBS_4fac135e166f/r5r/jar/metadata.csv': No such file or directory
  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()
    8. utils::read.csv(...)
    9. utils::read.table(...)
   10. base::file(file, "rt")
  
  == Failed tests ================================================================
  -- Error (test-download_r5.R:6:3): download_r5 - expected behavior -------------
  Error: cannot open the connection
  Backtrace:
      x
   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()
   6.     \-utils::read.csv(...)
   7.       \-utils::read.table(...)
   8.         \-base::file(file, "rt")
  
  [ FAIL 1 | WARN 9 | SKIP 6 | PASS 5 ]
  Error: Test failures
  In addition: Warning messages:
  1: closing unused connection 6 (https://www.ipea.gov.br/geobr/r5r/metadata.csv) 
  2: closing unused connection 5 (https://www.ipea.gov.br/geobr/r5r/metadata.csv) 
  3: closing unused connection 4 (https://www.ipea.gov.br/geobr/r5r/metadata.csv) 
  Execution halted