Running ‘test-all.R’ [30s/147s]
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > library(testthat)
  > test_check("reproducible")
  Loading required package: reproducible
  
  Attaching package: 'reproducible'
  
  The following object is masked from 'package:testthat':
  
      %>%
  
    objectNames hashElements                             hash objSize
  1           n            n 6c7241b28962c115e2474b0001db7ad0      56
  2        .FUN         .FUN 67df18ede3a1a11346db5d8aa4e79c19     224
    functionName        component  elapsedTime units
  1        rnorm          Hashing 1.785755e-04  secs
  2        rnorm    Running rnorm 4.768372e-05  secs
  3        rnorm   Saving to repo 6.819367e-02  secs
  4        rnorm Whole Cache call 4.987459e-01  secs
    objectNames hashElements                             hash objSize
  1        file         file                 d191b0ae289048c7     168
  2        .FUN         .FUN ec4c07082632cc59b9ccec7c1ddd771d    1256
    functionName        component  elapsedTime units
  1      readRDS          Hashing 0.0005180836  secs
  2      readRDS  Running readRDS 0.0004706383  secs
  3      readRDS   Saving to repo 0.1140160561  secs
  4      readRDS Whole Cache call 0.1397085190  secs
    objectNames hashElements                             hash objSize
  1        file         file                 d191b0ae289048c7   24130
  2        .FUN         .FUN ec4c07082632cc59b9ccec7c1ddd771d    1256
    functionName        component  elapsedTime units
  1      readRDS          Hashing 0.0005042553  secs
  2      readRDS  Running readRDS 0.0004599094  secs
  3      readRDS   Saving to repo 0.0788366795  secs
  4      readRDS Whole Cache call 0.1000106335  secs
  ── 1. Error: test cached downloads (@test-cacheArguments.R#18)  ────────────────
  cannot open URL 'http://ftp.geogratis.gc.ca/pub/nrcan_rncan/archive/vector/cli_itc_50k/land_use/L040J03.zip'
  1: Cache(utils::download.file, url = url, destfile = asPath(file.path(outdir, basename(url))), 
         method = "auto", quiet = TRUE, mode = "wb", cacheOK = TRUE, cacheRepo = outdir, 
         sideEffect = TRUE, makeCopy = FALSE, quick = TRUE) at testthat/test-cacheArguments.R:18
  2: standardGeneric("Cache")
  3: eval(mc, env)
  4: eval(mc, env)
  5: Cache(FUN = FUN, ..., cacheRepo = cacheRepo, sideEffect = sideEffect, makeCopy = makeCopy, 
         quick = quick)
  6: do.call(FUN, fnDetails$originalDots)
  7: (function (url, destfile, method, quiet = FALSE, mode = "w", cacheOK = TRUE, extra = getOption("download.file.extra"), 
         ...) 
     {
         destfile
         method <- if (missing(method)) 
             getOption("download.file.method", default = "auto")
         else match.arg(method, c("auto", "internal", "libcurl", "wget", "curl", "lynx"))
         if (method == "auto") {
             if (length(url) != 1L || typeof(url) != "character") 
                 stop("'url' must be a length-one character vector")
             method <- if (grepl("^file:", url)) 
                 "internal"
             else "libcurl"
         }
         switch(method, internal = {
             status <- .External(C_download, url, destfile, quiet, mode, cacheOK)
             if (!quiet) flush.console()
         }, libcurl = {
             status <- .Internal(curlDownload(url, destfile, quiet, mode, cacheOK))
             if (!quiet) flush.console()
         }, wget = {
             if (length(url) != 1L || typeof(url) != "character") stop("'url' must be a length-one character vector")
             if (length(destfile) != 1L || typeof(destfile) != "character") stop("'destfile' must be a length-one character vector")
             if (quiet) extra <- c(extra, "--quiet")
             if (!cacheOK) extra <- c(extra, "--cache=off")
             status <- system(paste("wget", paste(extra, collapse = " "), shQuote(url), 
                 "-O", shQuote(path.expand(destfile))))
             if (status) stop("'wget' call had nonzero exit status")
         }, curl = {
             if (length(url) != 1L || typeof(url) != "character") stop("'url' must be a length-one character vector")
             if (length(destfile) != 1L || typeof(url) != "character") stop("'destfile' must be a length-one character vector")
             if (quiet) extra <- c(extra, "-s -S")
             if (!cacheOK) extra <- c(extra, "-H 'Pragma: no-cache'")
             status <- system(paste("curl", paste(extra, collapse = " "), shQuote(url), 
                 " -o", shQuote(path.expand(destfile))))
             if (status) stop("'curl' call had nonzero exit status")
         }, lynx = stop("method 'lynx' is defunct", domain = NA))
         if (status) 
             warning("download had nonzero exit status")
         invisible(status)
     })(url = "http://ftp.geogratis.gc.ca/pub/nrcan_rncan/archive/vector/cli_itc_50k/land_use/L040J03.zip", 
         destfile = structure("/home/hornik/tmp/scratch/RtmpnewkJ6/OTHEASWJRUBXZIDNFKLQCYPGVM/L040J03.zip", class = c("Path", 
         "character", "vector", "data.frameRowLabels", "SuperClassMethod", "EnumerationValue"
         ), nParentDirs = 0), method = "auto", quiet = TRUE, mode = "wb", cacheOK = TRUE)
  
  cloning into '/home/hornik/tmp/scratch/RtmpnewkJ6/test_git'...
  Receiving objects:   1% (4/398),    8 kb
  Receiving objects:  11% (44/398),    8 kb
  Receiving objects:  21% (84/398),   32 kb
  Receiving objects:  31% (124/398),  146 kb
  Receiving objects:  41% (164/398),  154 kb
  Receiving objects:  51% (203/398),  162 kb
  Receiving objects:  61% (243/398),  162 kb
  Receiving objects:  71% (283/398),  170 kb
  Receiving objects:  81% (323/398),  178 kb
  Receiving objects:  91% (363/398),  178 kb
  Receiving objects: 100% (398/398),  208 kb, done.
  trying URL 'http://biogeo.ucdavis.edu/data/gadm2.8/rds/LUX_adm0.rds'
  Content type 'text/html; charset=iso-8859-1' length 14755 bytes (14 KB)
  ==================================================
  downloaded 14 KB
  
  [1] "1_2_5_6"
  [1] "1_2_5_6_8"
  [1] "1_2_5_6_8"
  trying URL 'http://biogeo.ucdavis.edu/data/gadm2.8/rds/LUX_adm0.rds'
  Content type 'text/html; charset=iso-8859-1' length 14755 bytes (14 KB)
  ==================================================
  downloaded 14 KB
  
  [1] "1_2_5_6"
  [1] "1_2_3_4"
  [1] "1_2_3_4"
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |======================                                                |  32%
    |                                                                            
    |======================================================                |  78%
    |                                                                            
    |======================================================================| 100%
  [1] "1_2_5_6_7_11"
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 215 SKIPPED: 9 FAILED: 1
  1. Error: test cached downloads (@test-cacheArguments.R#18) 
  
  Error: testthat unit tests failed
  Execution halted