Running ‘testthat.R’ [50s/82s]
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-16, (SVN revision 1050)
  Geospatial Data Abstraction Library extensions to R successfully loaded
  Loaded GDAL runtime: GDAL 2.2.4, released 2018/03/19
  Path to GDAL shared files: /usr/local/share/gdal
  GDAL binary built with GEOS: TRUE 
  Loaded PROJ runtime: Rel. 5.2.0, September 15th, 2018, [PJ_VERSION: 520]
  Path to PROJ shared files: (autodetected)
  Linking to sp version:1.4-2
  > 
  > test_check("sdmpredictors")
  [1] "/home/ripley/R/packages/tests32/sdmpredictors.Rcheck/tests/testthat"
  trying URL 'http://www.lifewatch.be/sdmpredictors/BO_ph_lonlat.tif'
  Content type 'image/tiff' length 2518560 bytes (2.4 MB)
  ==================================================
  downloaded 2.4 MB
  
  trying URL 'http://www.lifewatch.be/sdmpredictors/MS_bathy_21kya_lonlat.tif'
  Content type 'image/tiff' length 8210663 bytes (7.8 MB)
  ==================================================
  downloaded 7.8 MB
  
  ── 1. Failure: layers_correlation without args returns correlations for all laye
  nrow(layers) not equal to nrow(corr).
  1/1 mismatches
  [1] 1064 - 770 == 294
  
  ── 2. Failure: layers_correlation without args returns correlations for all laye
  nrow(layers) not equal to ncol(corr).
  1/1 mismatches
  [1] 1064 - 770 == 294
  
  ── 3. Failure: layers_correlation without args returns correlations for all laye
  all(layers$layer_code %in% colnames(corr)) isn't true.
  
  ── 4. Failure: layers_correlation without args returns correlations for all laye
  all(layers$layer_code %in% rownames(corr)) isn't true.
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 94 | SKIPPED: 15 | WARNINGS: 1 | FAILED: 4 ]
  1. Failure: layers_correlation without args returns correlations for all layers (@test_stats.R#37) 
  2. Failure: layers_correlation without args returns correlations for all layers (@test_stats.R#38) 
  3. Failure: layers_correlation without args returns correlations for all layers (@test_stats.R#39) 
  4. Failure: layers_correlation without args returns correlations for all layers (@test_stats.R#40) 
  
  Error: testthat unit tests failed
  Execution halted