Running ‘testthat.R’ [8s/321s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(aopdata)
  > 
  > test_check("aopdata")
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |======================================================================| 100%
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |======================================================================| 100%
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |======================================================================| 100%
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |======================================================================| 100%
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |======================================================================| 100%
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |======================================================================| 100%
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |======================================================================| 100%
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |======================================================================| 100%
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test_read_access.R:11:5): read_access expected behavior ──────────────
  Error: Timeout was reached: [www.ipea.gov.br] Operation timed out after 10000 milliseconds with 0 out of 0 bytes received
  Backtrace:
       █
    1. ├─testthat::expect_true(...) test_read_access.R:11:4
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─methods::is(read_access(city = "nat", geometry = TRUE), "sf")
    5. └─aopdata::read_access(city = "nat", geometry = TRUE)
    6.   └─aopdata::select_metadata(t = "access", c = city, y = year, m = mode)
    7.     ├─base::as.data.frame(download_metadata())
    8.     └─aopdata::download_metadata()
    9.       └─aopdata::check_connection(metadata_link)
   10.         ├─httr::http_error(httr::GET(file_url))
   11.         └─httr::GET(file_url)
   12.           └─httr:::request_perform(req, hu$handle$handle)
   13.             ├─httr:::request_fetch(req$output, req$url, handle)
   14.             └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   15.               └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test_read_grid.R:8:3): read_grid expected behavior ───────────────────
  Error: Cannot open "/tmp/RtmpTOa4Ep/working_dir/RtmpYLaO.u/hex_grid_nat.gpkg"; The source could be corrupt or not supported. See `st_drivers()` for a list of supported formats.
  Backtrace:
       █
    1. ├─testthat::expect_true(is(read_grid(city = "nat"), "sf")) test_read_grid.R:8:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─methods::is(read_grid(city = "nat"), "sf")
    5. └─aopdata::read_grid(city = "nat")
    6.   └─aopdata::download_data(file_url, progress_bar = showProgress)
    7.     └─aopdata::load_data(file_url, temps)
    8.       ├─sf::st_read(temps, quiet = T)
    9.       └─sf:::st_read.character(temps, quiet = T)
   10.         └─sf:::CPL_read_ogr(...)
  ── Error (test_read_landuse.R:8:5): read_landuse expected behavior ─────────────
  Error: Cannot open "/tmp/RtmpTOa4Ep/working_dir/RtmpYLaO.u/hex_grid_nat.gpkg"; The source could be corrupt or not supported. See `st_drivers()` for a list of supported formats.
  Backtrace:
       █
    1. ├─testthat::expect_true(...) test_read_landuse.R:8:4
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─methods::is(read_landuse(city = "nat", geometry = TRUE), "sf")
    5. └─aopdata::read_landuse(city = "nat", geometry = TRUE)
    6.   └─aopdata::read_grid(city = city, showProgress = showProgress)
    7.     └─aopdata::download_data(file_url, progress_bar = showProgress)
    8.       └─aopdata::load_data(file_url, temps)
    9.         ├─sf::st_read(temps, quiet = T)
   10.         └─sf:::st_read.character(temps, quiet = T)
   11.           └─sf:::CPL_read_ogr(...)
  ── Error (test_read_population.R:8:5): read_population expected behavior ───────
  Error: Cannot open "/tmp/RtmpTOa4Ep/working_dir/RtmpYLaO.u/hex_grid_nat.gpkg"; The source could be corrupt or not supported. See `st_drivers()` for a list of supported formats.
  Backtrace:
       █
    1. ├─testthat::expect_true(...) test_read_population.R:8:4
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─methods::is(read_population(city = "nat", geometry = TRUE), "sf")
    5. └─aopdata::read_population(city = "nat", geometry = TRUE)
    6.   └─aopdata::read_grid(city = city, showProgress = showProgress)
    7.     └─aopdata::download_data(file_url, progress_bar = showProgress)
    8.       └─aopdata::load_data(file_url, temps)
    9.         ├─sf::st_read(temps, quiet = T)
   10.         └─sf:::st_read.character(temps, quiet = T)
   11.           └─sf:::CPL_read_ogr(...)
  
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 34 ]
  Error: Test failures
  Execution halted