Running ‘testthat.R’ [42s/69s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library('testthat')
  > library('hddtools')
  Loading required package: rgdal
  Loading required package: sp
  rgdal: version: 1.2-5, (SVN revision 648)
   Geospatial Data Abstraction Library extensions to R successfully loaded
   Loaded GDAL runtime: GDAL 2.1.3, released 2017/20/01
   Path to GDAL shared files: /usr/local/share/gdal
   Loaded PROJ.4 runtime: Rel. 4.9.3, 15 August 2016, [PJ_VERSION: 493]
   Path to PROJ.4 shared files: (autodetected)
   Linking to sp version: 1.2-4 
  > 
  > test_check('hddtools')
  sh: wget: command not found
  1. Error: Test TRMM function (@test-TRMM.R#9) ----------------------------------
  'wget' call had nonzero exit status
  1: TRMM(product = "3B43", version = 7, type = "precipitation.accum", twindow = twindow, 
         areaBox = areaBox, outputfileLocation = ".") at testthat/test-TRMM.R:9
  2: mapply(download.file, selectedfilePaths, basename(selectedfilePaths), method = "wget")
  3: (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)
     })(dots[[1L]][[1L]], dots[[2L]][[1L]], method = dots[[3L]][[1L]])
  4: stop("'wget' call had nonzero exit status")
  
  trying URL 'ftp://ftp.bafg.de/pub/REFERATE/GRDC/ltdata/africa.zip'
  Content type 'unknown' length 2726292 bytes (2.6 MB)
  ==================================================
  testthat results ================================================================
  OK: 58 SKIPPED: 0 FAILED: 1
  1. Error: Test TRMM function (@test-TRMM.R#9) 
  
  Error: testthat unit tests failed
  Execution halted