Running ‘testthat.R’ [180s/208s]
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.2-8, (SVN revision 663)
   Geospatial Data Abstraction Library extensions to R successfully loaded
   Loaded GDAL runtime: GDAL 2.0.2, released 2016/01/26
   Path to GDAL shared files: /usr/share/gdal
   Loaded PROJ.4 runtime: Rel. 4.9.2, 08 September 2015, [PJ_VERSION: 492]
   Path to PROJ.4 shared files: (autodetected)
   Linking to sp version: 1.2-5 
  > 
  > test_check("sdmpredictors")
  1. Error: layer_citations returns expected citations (@test_citations.R#18) ----
  no applicable method for 'toBibtex' applied to an object of class "NULL"
  1: sapply(layer_citations(astext = FALSE), toBibtex) at testthat/test_citations.R:18
  2: lapply(X = X, FUN = FUN, ...)
  3: FUN(X[[i]], ...)
  
  2. Failure: citations are returned (@test_citations.R#52) ----------------------
  length(lcitations) not equal to length(dcitations).
  1/1 mismatches
  [1] 7 - 6 == 1
  
  
  3. Error: citations are returned (@test_citations.R#53) ------------------------
  no applicable method for 'toBibtex' applied to an object of class "NULL"
  1: lapply(layer_citations(astext = FALSE), toBibtex) at testthat/test_citations.R:53
  2: FUN(X[[i]], ...)
  
  [1] "/data/gannet/ripley/R/packages/tests-devel/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 7.8 MB
  
  testthat results ================================================================
  OK: 596 SKIPPED: 18 FAILED: 3
  1. Error: layer_citations returns expected citations (@test_citations.R#18) 
  2. Failure: citations are returned (@test_citations.R#52) 
  3. Error: citations are returned (@test_citations.R#53) 
  
  Error: testthat unit tests failed
  Execution halted