Running ‘test-all.R’ [18s/43s]
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > library(testthat)
  > test_check("reproducible")
  Loading required package: reproducible
  1. Failure: test file-backed raster caching (@test-cache.R#49) -----------------
  any(...) isn't true.
  
  
  2. Error: test file-backed raster caching (@test-cache.R#58) -------------------
  The file does not exist: /tmp/Rtmp4WayAx/test_Cache/rasters/file2ed31fc21e3.tif
  1: assign(paste0("b", i), system.time(assign(paste0("a", i), Cache(rasterTobinary, aa, 
         cacheRepo = tmpdir, notOlderThan = nOT)))) at testthat/test-cache.R:58
  2: system.time(assign(paste0("a", i), Cache(rasterTobinary, aa, cacheRepo = tmpdir, 
         notOlderThan = nOT)))
  3: assign(paste0("a", i), Cache(rasterTobinary, aa, cacheRepo = tmpdir, notOlderThan = nOT))
  4: Cache(rasterTobinary, aa, cacheRepo = tmpdir, notOlderThan = nOT)
  5: standardGeneric("Cache")
  6: eval(.dotsCall, env)
  7: eval(.dotsCall, env)
  8: .Method(..., FUN = FUN, notOlderThan = notOlderThan, objects = objects, outputObjects = outputObjects, 
         algo = algo, cacheRepo = cacheRepo, compareRasterFileLength = compareRasterFileLength, 
         userTags = userTags, digestPathContent = digestPathContent, omitArgs = omitArgs, 
         classOptions = classOptions, debugCache = debugCache, sideEffect = sideEffect, 
         makeCopy = makeCopy, quick = quick)
  9: lapply(tmpl, .robustDigest, objects = objects, compareRasterFileLength = compareRasterFileLength, 
         algo = algo, digestPathContent = digestPathContent, classOptions = classOptions)
  10: FUN(X[[i]], ...)
  11: FUN(X[[i]], ...)
  12: .local(object, compareRasterFileLength, algo, digestPathContent, classOptions)
  13: suppressWarnings(digestRaster(object, compareRasterFileLength, algo))
  14: withCallingHandlers(expr, warning = function(w) invokeRestart("muffleWarning"))
  15: digestRaster(object, compareRasterFileLength, algo)
  16: fastdigest(append(dig, digest::digest(file = object@file@name, length = compareRasterFileLength, 
         algo = algo)))
  17: paste(.Call(R_fastdigest, obj, ref_serializer, PACKAGE = "fastdigest"), collapse = "")
  18: append(dig, digest::digest(file = object@file@name, length = compareRasterFileLength, 
         algo = algo))
  19: digest::digest(file = object@file@name, length = compareRasterFileLength, algo = algo)
  20: .errorhandler("The file does not exist: ", object, mode = errormode)
  21: stop(txt, obj, call. = FALSE)
  
  3. Error: test Copy (@test-copy.R#10) ------------------------------------------
  
  1: expect_true(all.equal(ras2[], ras[])) at testthat/test-copy.R:10
  2: expect(identical(as.vector(object), TRUE), sprintf("%s isn't true.", lab), info = info)
  3: as.expectation(exp, ..., srcref = srcref)
  4: identical(as.vector(object), TRUE)
  5: as.vector(object)
  6: all.equal(ras2[], ras[])
  7: ras2[]
  8: ras2[]
  9: getValues(x)
  10: getValues(x)
  11: .local(x, ...)
  12: .readRasterLayerValues(x, 1, x@nrows)
  13: rgdal::GDAL.open(object@file@name, silent = TRUE)
  14: new("GDALReadOnlyDataset", filename, silent = silent, allowedDrivers = allowedDrivers, 
         options = options)
  15: initialize(value, ...)
  16: initialize(value, ...)
  17: .local(.Object, ...)
  
  4. Error: all exported functions have examples (@test-examples.R#4) ------------
  cannot open the connection
  1: sapply(fns[-omit], function(x) {
         expect_warning(example(x, package = "reproducible", character.only = TRUE, echo = FALSE), 
             NA)
     }) at testthat/test-examples.R:4
  2: lapply(X = X, FUN = FUN, ...)
  3: FUN(X[[i]], ...)
  4: expect_warning(example(x, package = "reproducible", character.only = TRUE, echo = FALSE), 
         NA) at testthat/test-examples.R:5
  5: capture_warnings(object)
  6: withCallingHandlers(code, warning = function(condition) {
         out$push(condition)
         invokeRestart("muffleWarning")
     })
  7: example(x, package = "reproducible", character.only = TRUE, echo = FALSE)
  8: source(tf, local, echo = echo, prompt.echo = paste0(prompt.prefix, getOption("prompt")), 
         continue.echo = paste0(prompt.prefix, getOption("continue")), verbose = verbose, 
         max.deparse.length = Inf, encoding = "UTF-8", skip.echo = skips, keep.source = TRUE)
  9: withVisible(eval(ei, envir))
  10: eval(ei, envir)
  11: eval(ei, envir)
  12: identical(read.csv(f1), read.csv(f2)) at /tmp/Rtmp4WayAx/Rex2ed37822a73:18
  13: read.csv(f2)
  14: read.table(file = file, header = header, sep = sep, quote = quote, dec = dec, fill = fill, 
         comment.char = comment.char, ...)
  15: file(file, "rt")
  
  testthat results ================================================================
  OK: 68 SKIPPED: 2 FAILED: 4
  1. Failure: test file-backed raster caching (@test-cache.R#49) 
  2. Error: test file-backed raster caching (@test-cache.R#58) 
  3. Error: test Copy (@test-copy.R#10) 
  4. Error: all exported functions have examples (@test-examples.R#4) 
  
  Error: testthat unit tests failed
  Execution halted