Running ‘testthat.R’ [131s/198s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(sdmpredictors)
  Loading required package: raster
  Loading required package: sp
  Loading required package: rgdal
  rgdal: version: 1.3-2, (SVN revision 755)
   Geospatial Data Abstraction Library extensions to R successfully loaded
   Loaded GDAL runtime: GDAL 2.3.0, released 2018/05/04
   Path to GDAL shared files: /usr/share/gdal
   GDAL binary built with GEOS: TRUE 
   Loaded PROJ.4 runtime: Rel. 5.1.0, June 1st, 2018, [PJ_VERSION: 510]
   Path to PROJ.4 shared files: (autodetected)
   Linking to sp version: 1.3-1 
  > 
  > test_check("sdmpredictors")
  [1] "/home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/sdmpredictors.Rcheck/tests/testthat"
  trying URL 'http://sdmpredictors.samuelbosch.com/BO_ph_lonlat.tif'
  Content type 'image/tiff' length 2518560 bytes (2.4 MB)
  ==================================================
  downloaded 2.4 MB
  
  trying URL 'http://sdmpredictors.samuelbosch.com/MS_bathy_21kya_lonlat.tif'
  Content type 'image/tiff' length 8210663 bytes (7.8 MB)
  ==========
  downloaded 1.7 MB
  
  ── 1. Error: load_layer handles special cases (@test_load.R#139)  ──────────────
  download from 'http://sdmpredictors.samuelbosch.com/MS_bathy_21kya_lonlat.tif' failed
  1: expect_warning(load_layers(c("BO_ph", "MS_bathy_21kya"), rasterstack = FALSE)) at testthat/test_load.R:139
  2: quasi_capture(enquo(object), capture_warnings, label = label)
  3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  4: withCallingHandlers(code, warning = function(condition) {
         out$push(condition)
         invokeRestart("muffleWarning")
     })
  5: eval_bare(get_expr(quo), get_env(quo))
  6: load_layers(c("BO_ph", "MS_bathy_21kya"), rasterstack = FALSE)
  7: sapply(layercodes, get_layerpath)
  8: lapply(X = X, FUN = FUN, ...)
  9: FUN(X[[i]], ...)
  10: utils::download.file(url, path, method = "auto", quiet = FALSE, mode = "wb")
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 610 SKIPPED: 18 FAILED: 1
  1. Error: load_layer handles special cases (@test_load.R#139) 
  
  Error: testthat unit tests failed
  Execution halted