Running 'testthat.R'
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(XPolaris)
  > 
  > test_check("XPolaris")
  trying URL 'http://hydrology.cee.duke.edu/POLARIS/PROPERTIES/v1.0/clay/mean/0_5/lat3940_lon-98-97.tif'
   length 26240289 bytes (25.0 MB)
  ==================================================
  downloaded 25.0 MB
  
  trying URL 'http://hydrology.cee.duke.edu/POLARIS/PROPERTIES/v1.0/clay/mean/0_5/lat3839_lon-96-95.tif'
   length 29796464 bytes (28.4 MB)
  ==================================================
  downloaded 28.4 MB
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-XPolaris.R:10:1): (code run outside of `test_that()`) ───────────
  Error: Problem with `mutate()` column `raster`.
  ℹ `raster = local_file %>% purrr::map(~raster::raster(.))`.
  ✖ Cannot create RasterLayer object from this file; perhaps you need to install rgdal first
  Backtrace:
       █
    1. ├─XPolaris::xsoil(img) test-XPolaris.R:10:0
    2. │ └─`%>%`(...)
    3. ├─tidyr::unnest(., colnames(.))
    4. ├─tidyr::pivot_wider(., names_from = variables, values_from = Values)
    5. ├─dplyr::mutate(...)
    6. ├─dplyr::ungroup(.)
    7. ├─tidyr::unnest(., cols = coordinates)
    8. ├─dplyr::select(., variables, statistics, layersdepths, coordinates)
    9. ├─dplyr::mutate(...)
   10. ├─dplyr::mutate(...)
   11. ├─dplyr::mutate(., raster = local_file %>% purrr::map(~raster::raster(.)))
   12. ├─dplyr:::mutate.data.frame(., raster = local_file %>% purrr::map(~raster::raster(.)))
   13. │ └─dplyr:::mutate_cols(.data, ..., caller_env = caller_env())
   14. │   ├─base::withCallingHandlers(...)
   15. │   └─mask$eval_all_mutate(quo)
   16. ├─local_file %>% purrr::map(~raster::raster(.))
   17. ├─purrr::map(., ~raster::raster(.))
   18. │ └─XPolaris:::.f(.x[[i]], ...)
   19. │   ├─raster::raster(.)
   20. │   └─raster::raster(.)
   21. │     └─raster:::.local(x, ...)
   22. │       └─raster:::.rasterObjectFromFile(...)
   23. │         └─base::stop("Cannot create RasterLayer object from this file; perhaps you need to install rgdal first")
   24. └─base::.handleSimpleError(...)
   25.   └─dplyr:::h(simpleError(msg, call))
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ]
  Error: Test failures
  Execution halted