Running 'testthat.R' [23s]
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.5-19, (SVN revision 1092)
  Geospatial Data Abstraction Library extensions to R successfully loaded
  Loaded GDAL runtime: GDAL 3.0.4, released 2020/01/28
  Path to GDAL shared files: D:/temp/Rtmpuo1Ykx/RLIBS_190fc54ca43fe/rgdal/gdal
  GDAL binary built with GEOS: TRUE 
  Loaded PROJ runtime: Rel. 6.3.1, February 10th, 2020, [PJ_VERSION: 631]
  Path to PROJ shared files: D:/temp/Rtmpuo1Ykx/RLIBS_190fc54ca43fe/rgdal/proj
  Linking to sp version:1.4-5
  To mute warnings of possible GDAL/OSR exportToProj4() degradation,
  use options("rgdal_show_exportToProj4_warnings"="none") before loading rgdal.
  > 
  > test_check("sdmpredictors")
  [1] "d:/Rcompile/CRANpkg/local/4.0/sdmpredictors.Rcheck/tests/testthat"
  == Skipped tests ===============================================================
  * On CRAN (17)
  
  == Warnings ====================================================================
  -- Warning (test_citations.R:6:3): layer_citations returns expected citations --
  InternetOpenUrl failed: 'Die Serververbindung konnte nicht hergestellt werden.'
  Backtrace:
   1. sdmpredictors::layer_citations("BO_salinity") test_citations.R:6:2
   2. sdmpredictors:::get_sysdata()
   8. utils::download.file(url, tmp, quiet = TRUE)
  -- Warning (test_citations.R:10:3): layer_citations returns expected citations --
  InternetOpenUrl failed: 'Die Serververbindung konnte nicht hergestellt werden.'
  Backtrace:
   1. sdmpredictors::layer_citations("BO_A1B_2100_salinity") test_citations.R:10:2
   2. sdmpredictors:::get_sysdata()
   8. utils::download.file(url, tmp, quiet = TRUE)
  -- Warning (test_citations.R:14:3): layer_citations returns expected citations --
  InternetOpenUrl failed: 'Die Serververbindung konnte nicht hergestellt werden.'
  Backtrace:
   1. sdmpredictors::layer_citations("MS_biogeo02_aspect_NS_21kya") test_citations.R:14:2
   2. sdmpredictors:::get_sysdata()
   8. utils::download.file(url, tmp, quiet = TRUE)
  -- Warning (test_citations.R:18:3): layer_citations returns expected citations --
  InternetOpenUrl failed: 'Die Serververbindung konnte nicht hergestellt werden.'
  Backtrace:
    1. base::sapply(layer_citations(astext = FALSE), toBibtex) test_citations.R:18:2
    3. sdmpredictors::layer_citations(astext = FALSE)
    4. sdmpredictors:::get_sysdata()
   10. utils::download.file(url, tmp, quiet = TRUE)
  -- Warning (test_citations.R:18:3): layer_citations returns expected citations --
  InternetOpenUrl failed: 'Die Serververbindung konnte nicht hergestellt werden.'
  Backtrace:
    1. base::sapply(layer_citations(astext = FALSE), toBibtex) test_citations.R:18:2
    3. sdmpredictors::layer_citations(astext = FALSE)
    4. sdmpredictors::get_layers_info()
    5. sdmpredictors:::get_sysdata()
   11. utils::download.file(url, tmp, quiet = TRUE)
  -- Warning (test_citations.R:18:3): layer_citations returns expected citations --
  InternetOpenUrl failed: 'Die Serververbindung konnte nicht hergestellt werden.'
  Backtrace:
    1. base::sapply(layer_citations(astext = FALSE), toBibtex) test_citations.R:18:2
    3. sdmpredictors::layer_citations(astext = FALSE)
    4. sdmpredictors::get_layers_info()
    5. sdmpredictors:::get_sysdata()
   11. utils::download.file(url, tmp, quiet = TRUE)
  -- Warning (test_citations.R:18:3): layer_citations returns expected citations --
  InternetOpenUrl failed: 'Die Serververbindung konnte nicht hergestellt werden.'
  Backtrace:
    1. base::sapply(layer_citations(astext = FALSE), toBibtex) test_citations.R:18:2
    3. sdmpredictors::layer_citations(astext = FALSE)
    4. sdmpredictors::get_layers_info()
    5. sdmpredictors:::get_sysdata()
   11. utils::download.file(url, tmp, quiet = TRUE)
  -- Warning (test_citations.R:33:3): each dataset has at least one citation -----
  InternetOpenUrl failed: 'Die Serververbindung konnte nicht hergestellt werden.'
  Backtrace:
   1. sdmpredictors::list_datasets() test_citations.R:33:2
   2. sdmpredictors:::get_sysdata()
   8. utils::download.file(url, tmp, quiet = TRUE)
  -- Warning (test_citations.R:35:5): each dataset has at least one citation -----
  InternetOpenUrl failed: 'Die Serververbindung konnte nicht hergestellt werden.'
  Backtrace:
   1. sdmpredictors::dataset_citations(datasets[i, ]) test_citations.R:35:4
   2. sdmpredictors:::get_sysdata()
   8. utils::download.file(url, tmp, quiet = TRUE)
  -- Warning (test_citations.R:35:5): each dataset has at least one citation -----
  InternetOpenUrl failed: 'Die Serververbindung konnte nicht hergestellt werden.'
  Backtrace:
   1. sdmpredictors::dataset_citations(datasets[i, ]) test_citations.R:35:4
   2. sdmpredictors:::get_sysdata()
   8. utils::download.file(url, tmp, quiet = TRUE)
  -- Warning (test_citations.R:35:5): each dataset has at least one citation -----
  InternetOpenUrl failed: 'Die Serververbindung konnte nicht hergestellt werden.'
  Backtrace:
   1. sdmpredictors::dataset_citations(datasets[i, ]) test_citations.R:35:4
   2. sdmpredictors:::get_sysdata()
   8. utils::download.file(url, tmp, quiet = TRUE)
  -- Warning (test_citations.R:35:5): each dataset has at least one citation -----
  InternetOpenUrl failed: 'Die Serververbindung konnte nicht hergestellt werden.'
  Backtrace:
   1. sdmpredictors::dataset_citations(datasets[i, ]) test_citations.R:35:4
   2. sdmpredictors:::get_sysdata()
   8. utils::download.file(url, tmp, quiet = TRUE)
  -- Warning (test_citations.R:35:5): each dataset has at least one citation -----
  InternetOpenUrl failed: 'Die Serververbindung konnte nicht hergestellt werden.'
  Backtrace:
   1. sdmpredictors::dataset_citations(datasets[i, ]) test_citations.R:35:4
   2. sdmpredictors:::get_sysdata()
   8. utils::download.file(url, tmp, quiet = TRUE)
  -- Warning (test_citations.R:50:3): citations are returned ---------------------
  InternetOpenUrl failed: 'Die Serververbindung konnte nicht hergestellt werden.'
  Backtrace:
   1. sdmpredictors::layer_citations() test_citations.R:50:2
   2. sdmpredictors:::get_sysdata()
   8. utils::download.file(url, tmp, quiet = TRUE)
  -- Warning (test_citations.R:50:3): citations are returned ---------------------
  InternetOpenUrl failed: 'Die Serververbindung konnte nicht hergestellt werden.'
  Backtrace:
   1. sdmpredictors::layer_citations() test_citations.R:50:2
   2. sdmpredictors::get_layers_info()
   3. sdmpredictors:::get_sysdata()
   9. utils::download.file(url, tmp, quiet = TRUE)
  -- Warning (test_citations.R:50:3): citations are returned ---------------------
  InternetOpenUrl failed: 'Die Serververbindung konnte nicht hergestellt werden.'
  Backtrace:
   1. sdmpredictors::layer_citations() test_citations.R:50:2
   2. sdmpredictors::get_layers_info()
   3. sdmpredictors:::get_sysdata()
   9. utils::download.file(url, tmp, quiet = TRUE)
  -- Warning (test_citations.R:50:3): citations are returned ---------------------
  InternetOpenUrl failed: 'Die Serververbindung konnte nicht hergestellt werden.'
  Backtrace:
   1. sdmpredictors::layer_citations() test_citations.R:50:2
   2. sdmpredictors::get_layers_info()
   3. sdmpredictors:::get_sysdata()
   9. utils::download.file(url, tmp, quiet = TRUE)
  -- Warning (test_citations.R:51:3): citations are returned ---------------------
  InternetOpenUrl failed: 'Die Serververbindung konnte nicht hergestellt werden.'
  Backtrace:
   1. sdmpredictors::dataset_citations() test_citations.R:51:2
   2. sdmpredictors:::get_sysdata()
   8. utils::download.file(url, tmp, quiet = TRUE)
  -- Warning (test_citations.R:54:3): citations are returned ---------------------
  InternetOpenUrl failed: 'Die Serververbindung konnte nicht hergestellt werden.'
  Backtrace:
   1. base::lapply(layer_citations(astext = FALSE), toBibtex) test_citations.R:54:2
   2. sdmpredictors::layer_citations(astext = FALSE)
   3. sdmpredictors:::get_sysdata()
   9. utils::download.file(url, tmp, quiet = TRUE)
  -- Warning (test_citations.R:54:3): citations are returned ---------------------
  InternetOpenUrl failed: 'Die Serververbindung konnte nicht hergestellt werden.'
  Backtrace:
    1. base::lapply(layer_citations(astext = FALSE), toBibtex) test_citations.R:54:2
    2. sdmpredictors::layer_citations(astext = FALSE)
    3. sdmpredictors::get_layers_info()
    4. sdmpredictors:::get_sysdata()
   10. utils::download.file(url, tmp, quiet = TRUE)
  -- Warning (test_citations.R:54:3): citations are returned ---------------------
  InternetOpenUrl failed: 'Die Serververbindung konnte nicht hergestellt werden.'
  Backtrace:
    1. base::lapply(layer_citations(astext = FALSE), toBibtex) test_citations.R:54:2
    2. sdmpredictors::layer_citations(astext = FALSE)
    3. sdmpredictors::get_layers_info()
    4. sdmpredictors:::get_sysdata()
   10. utils::download.file(url, tmp, quiet = TRUE)
  -- Warning (test_citations.R:54:3): citations are returned ---------------------
  InternetOpenUrl failed: 'Die Serververbindung konnte nicht hergestellt werden.'
  Backtrace:
    1. base::lapply(layer_citations(astext = FALSE), toBibtex) test_citations.R:54:2
    2. sdmpredictors::layer_citations(astext = FALSE)
    3. sdmpredictors::get_layers_info()
    4. sdmpredictors:::get_sysdata()
   10. utils::download.file(url, tmp, quiet = TRUE)
  -- Warning (test_citations.R:55:3): citations are returned ---------------------
  InternetOpenUrl failed: 'Die Serververbindung konnte nicht hergestellt werden.'
  Backtrace:
   1. base::lapply(dataset_citations(astext = FALSE), toBibtex) test_citations.R:55:2
   2. sdmpredictors::dataset_citations(astext = FALSE)
   3. sdmpredictors:::get_sysdata()
   9. utils::download.file(url, tmp, quiet = TRUE)
  -- Warning (test_get_sysdata.R:8:3): get_sysdata has no unnamed list entries ---
  InternetOpenUrl failed: 'Die Serververbindung konnte nicht hergestellt werden.'
  Backtrace:
   1. sdmpredictors:::get_sysdata() test_get_sysdata.R:8:2
   7. utils::download.file(url, tmp, quiet = TRUE)
  -- Warning (test_get_sysdata.R:16:3): get_sysdata returns all expected entries --
  InternetOpenUrl failed: 'Die Serververbindung konnte nicht hergestellt werden.'
  Backtrace:
   1. sdmpredictors:::get_sysdata() test_get_sysdata.R:16:2
   7. utils::download.file(url, tmp, quiet = TRUE)
  -- Warning (test_get_sysdata.R:42:3): sysdata gets downloaded ------------------
  InternetOpenUrl failed: 'Die Serververbindung konnte nicht hergestellt werden.'
  Backtrace:
   1. sdmpredictors:::gets_downloaded(outfile) test_get_sysdata.R:42:2
   2. sdmpredictors:::get_sysdata() test_get_sysdata.R:36:4
   8. utils::download.file(url, tmp, quiet = TRUE)
  -- Warning (test_get_sysdata.R:45:3): sysdata gets downloaded ------------------
  InternetOpenUrl failed: 'Die Serververbindung konnte nicht hergestellt werden.'
  Backtrace:
   1. sdmpredictors:::gets_downloaded(outfile) test_get_sysdata.R:45:2
   2. sdmpredictors:::get_sysdata() test_get_sysdata.R:36:4
   8. utils::download.file(url, tmp, quiet = TRUE)
  -- Warning (test_list.R:5:3): list_datasets works ------------------------------
  InternetOpenUrl failed: 'Die Serververbindung konnte nicht hergestellt werden.'
  Backtrace:
   1. sdmpredictors::list_datasets() test_list.R:5:2
   2. sdmpredictors:::get_sysdata()
   8. utils::download.file(url, tmp, quiet = TRUE)
  -- Warning (test_list.R:10:3): list_layers works -------------------------------
  InternetOpenUrl failed: 'Die Serververbindung konnte nicht hergestellt werden.'
  Backtrace:
   1. sdmpredictors::list_layers() test_list.R:10:2
   2. sdmpredictors:::get_sysdata()
   8. utils::download.file(url, tmp, quiet = TRUE)
  -- Warning (test_list.R:15:3): list_layers_future works ------------------------
  InternetOpenUrl failed: 'Die Serververbindung konnte nicht hergestellt werden.'
  Backtrace:
   1. sdmpredictors::list_layers_future() test_list.R:15:2
   2. sdmpredictors:::get_sysdata()
   8. utils::download.file(url, tmp, quiet = TRUE)
  -- Warning (test_list.R:15:3): list_layers_future works ------------------------
  InternetOpenUrl failed: 'Die Serververbindung konnte nicht hergestellt werden.'
  Backtrace:
    1. sdmpredictors::list_layers_future() test_list.R:15:2
    2. sdmpredictors:::filter_layers(...)
    3. sdmpredictors::list_datasets(terrestrial, marine, freshwater)
    4. sdmpredictors:::get_sysdata()
   10. utils::download.file(url, tmp, quiet = TRUE)
  -- Warning (test_list.R:20:3): list_layers_paleo works -------------------------
  InternetOpenUrl failed: 'Die Serververbindung konnte nicht hergestellt werden.'
  Backtrace:
   1. sdmpredictors::list_layers_paleo() test_list.R:20:2
   2. sdmpredictors:::get_sysdata()
   8. utils::download.file(url, tmp, quiet = TRUE)
  -- Warning (test_list.R:20:3): list_layers_paleo works -------------------------
  InternetOpenUrl failed: 'Die Serververbindung konnte nicht hergestellt werden.'
  Backtrace:
    1. sdmpredictors::list_layers_paleo() test_list.R:20:2
    2. sdmpredictors:::filter_layers(...)
    3. sdmpredictors::list_datasets(terrestrial, marine, freshwater)
    4. sdmpredictors:::get_sysdata()
   10. utils::download.file(url, tmp, quiet = TRUE)
  -- Warning (test_stats.R:14:3): layer_stats without args returns all layers ----
  InternetOpenUrl failed: 'Die Serververbindung konnte nicht hergestellt werden.'
  Backtrace:
   1. sdmpredictors::get_layers_info() test_stats.R:14:2
   2. sdmpredictors:::get_sysdata()
   8. utils::download.file(url, tmp, quiet = TRUE)
  -- Warning (test_stats.R:14:3): layer_stats without args returns all layers ----
  InternetOpenUrl failed: 'Die Serververbindung konnte nicht hergestellt werden.'
  Backtrace:
   1. sdmpredictors::get_layers_info() test_stats.R:14:2
   2. sdmpredictors:::get_sysdata()
   8. utils::download.file(url, tmp, quiet = TRUE)
  -- Warning (test_stats.R:14:3): layer_stats without args returns all layers ----
  InternetOpenUrl failed: 'Die Serververbindung konnte nicht hergestellt werden.'
  Backtrace:
   1. sdmpredictors::get_layers_info() test_stats.R:14:2
   2. sdmpredictors:::get_sysdata()
   8. utils::download.file(url, tmp, quiet = TRUE)
  -- Warning (test_stats.R:15:3): layer_stats without args returns all layers ----
  InternetOpenUrl failed: 'Die Serververbindung konnte nicht hergestellt werden.'
  Backtrace:
   1. sdmpredictors::layer_stats() test_stats.R:15:2
   2. sdmpredictors:::get_sysdata()
   8. utils::download.file(url, tmp, quiet = TRUE)
  -- Warning (test_stats.R:21:3): layer_stats with one or more existing layercodes works --
  InternetOpenUrl failed: 'Die Serververbindung konnte nicht hergestellt werden.'
  Backtrace:
   1. sdmpredictors::layer_stats(data.frame(layer_code = "BO_calcite")) test_stats.R:21:2
   2. sdmpredictors:::get_sysdata()
   8. utils::download.file(url, tmp, quiet = TRUE)
  -- Warning (test_stats.R:25:3): layer_stats with one or more existing layercodes works --
  InternetOpenUrl failed: 'Die Serververbindung konnte nicht hergestellt werden.'
  Backtrace:
   1. sdmpredictors::layer_stats(c("BO_calcite", "MS_bathy_5m")) test_stats.R:25:2
   2. sdmpredictors:::get_sysdata()
   8. utils::download.file(url, tmp, quiet = TRUE)
  -- Warning (test_stats.R:42:3): layers_correlation without args returns correlations for all layers --
  InternetOpenUrl failed: 'Die Serververbindung konnte nicht hergestellt werden.'
  Backtrace:
    1. sdmpredictors:::skip_version(list_layers(), "Bio-ORACLE", 2.1) test_stats.R:42:2
    3. sdmpredictors::list_layers()
    4. sdmpredictors:::get_sysdata()
   10. utils::download.file(url, tmp, quiet = TRUE)
  -- Warning (test_stats.R:43:3): layers_correlation without args returns correlations for all layers --
  InternetOpenUrl failed: 'Die Serververbindung konnte nicht hergestellt werden.'
  Backtrace:
   1. sdmpredictors::layers_correlation() test_stats.R:43:2
   2. sdmpredictors:::get_sysdata()
   8. utils::download.file(url, tmp, quiet = TRUE)
  -- Warning (test_stats.R:51:3): layers_correlation with one or more existing layercodes works --
  InternetOpenUrl failed: 'Die Serververbindung konnte nicht hergestellt werden.'
  Backtrace:
   1. sdmpredictors::layers_correlation(c("BO_calcite", "MS_bathy_5m")) test_stats.R:51:2
   2. sdmpredictors:::get_sysdata()
   8. utils::download.file(url, tmp, quiet = TRUE)
  -- Warning (test_stats.R:55:3): layers_correlation with one or more existing layercodes works --
  InternetOpenUrl failed: 'Die Serververbindung konnte nicht hergestellt werden.'
  Backtrace:
   1. sdmpredictors::layers_correlation(...) test_stats.R:55:2
   2. sdmpredictors:::get_sysdata()
   8. utils::download.file(url, tmp, quiet = TRUE)
  -- Warning (test_stats.R:115:3): calc_stats returns stats ----------------------
  CRS is NA. Assuming it is longitude/latitude
  Backtrace:
   1. sdmpredictors::calculate_statistics(...) test_stats.R:115:2
   2. sdmpredictors:::moran_geary(raster, mean)
   4. raster::getValuesFocal(...)
   5. raster:::.local(x, row, nrows, ngb, ...)
   7. raster::couldBeLonLat(xx)
   8. raster:::.local(x, ...)
   9. raster:::.couldBeLonLat(x, warnings = warnings)
  
  == Failed tests ================================================================
  -- Failure (test_get_sysdata.R:42:3): sysdata gets downloaded ------------------
  file.exists(outfile) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  -- Failure (test_get_sysdata.R:45:3): sysdata gets downloaded ------------------
  file.exists(outfile) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  
  [ FAIL 2 | WARN 44 | SKIP 17 | PASS 91 ]
  Error: Test failures
  Execution halted