Running ‘testthat.R’ [5s/19s]
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.4-3, (SVN revision 828)
   Geospatial Data Abstraction Library extensions to R successfully loaded
   Loaded GDAL runtime: GDAL 2.4.0, released 2018/12/14
   Path to GDAL shared files: /usr/share/gdal
   GDAL binary built with GEOS: TRUE 
   Loaded PROJ.4 runtime: Rel. 5.2.0, September 15th, 2018, [PJ_VERSION: 520]
   Path to PROJ.4 shared files: (autodetected)
   Linking to sp version: 1.3-1 
  > 
  > test_check("sdmpredictors")
  [1] "/home/hornik/tmp/R.check/r-patched-gcc/Work/PKGS/sdmpredictors.Rcheck/tests/testthat"
  ── 1. Failure: sysdata gets downloaded (@test_get_sysdata.R#42)  ───────────────
  file.exists(outfile) isn't true.
  
  ── 2. Failure: sysdata gets downloaded (@test_get_sysdata.R#45)  ───────────────
  file.exists(outfile) isn't true.
  
  trying URL 'http://www.lifewatch.be/sdmpredictors/BO_ph_lonlat.tif'
  ── 3. Error: load_layer handles special cases (@test_load.R#139)  ──────────────
  cannot open URL 'http://www.lifewatch.be/sdmpredictors/BO_ph_lonlat.tif'
  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: 141 SKIPPED: 15 FAILED: 3
  1. Failure: sysdata gets downloaded (@test_get_sysdata.R#42) 
  2. Failure: sysdata gets downloaded (@test_get_sysdata.R#45) 
  3. Error: load_layer handles special cases (@test_load.R#139) 
  
  Error: testthat unit tests failed
  Execution halted