* using log directory ‘/data/blackswan/ripley/R/packages/tests-devel/AWAPer.Rcheck’ * using R Under development (unstable) (2022-02-13 r81726) * using platform: x86_64-pc-linux-gnu (64-bit) * using session charset: UTF-8 * checking for file ‘AWAPer/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘AWAPer’ version ‘0.1.46’ * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for executable files ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking whether package ‘AWAPer’ can be installed ... OK * checking package directory ... OK * checking ‘build’ directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... OK * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd line widths ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking contents of ‘data’ directory ... OK * checking data for non-ASCII characters ... OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking installed files from ‘inst/doc’ ... OK * checking files in ‘vignettes’ ... OK * checking examples ... OK * checking examples with --run-donttest ... ERROR Running examples in ‘AWAPer-Ex.R’ failed The error most likely occurred in: > ### Name: extractCatchmentData > ### Title: 'extractCatchmentData' extracts catchment average climate data > ### from netCDF files containing Australian climate data. > ### Aliases: extractCatchmentData > > ### ** Examples > > # The example shows how to extract and save data. > # For an additional example see \url{https://github.com/peterson-tim-j/AWAPer/blob/master/README.md} > #--------------------------------------- > library(sp) > > # Set dates for building netCDFs and extracting data. > # Note, to reduce runtime this is done only a fortnight (14 days). > startDate = as.Date("2000-01-01","%Y-%m-%d") > endDate = as.Date("2000-01-14","%Y-%m-%d") > > # Set names for netCDF files. > ncdfFilename = tempfile(fileext='.nc') > ncdfSolarFilename = tempfile(fileext='.nc') > > # Build netCDF grids and over a defined time period. > # Only precip data is to be added to the netCDF files. > # This is because the URLs for the other variables are set to zero. > ## No test: > file.names = makeNetCDF_file(ncdfFilename=ncdfFilename, + ncdfSolarFilename=ncdfSolarFilename, + updateFrom=startDate, updateTo=endDate, + urlTmin=NA, urlTmax=NA, urlVprp=NA, urlSolarrad=NA) Starting to build both netCDF files. ... Testing downloading of AWAP precip. grid Warning in utils::download.file(url, des.file.name, quiet = T) : cannot open URL 'http://www.bom.gov.au/web03/ncc/www/awap/rainfall/totals/daily/grid/0.05/history/nat/2000010120000101.grid.Z': HTTP status was '403 Forbidden' ... Getting grid gemoetry from file. Warning in readLines(a <- gzfile(des.file.name)) : cannot open compressed file '/data/blackswan/ripley/R/packages/tests-devel/AWAPer.Rcheck/precip.20000101.grid.gz', probable reason 'No such file or directory' Error in readLines(a <- gzfile(des.file.name)) : cannot open the connection Calls: makeNetCDF_file -> -> textConnection -> readLines Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes in ‘inst/doc’ ... OK * checking re-building of vignette outputs ... OK * checking PDF version of manual ... OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * checking for new files in some other directories ... OK * DONE Status: 1 ERROR See ‘/data/blackswan/ripley/R/packages/tests-devel/AWAPer.Rcheck/00check.log’ for details. Command exited with non-zero status 1 Time 0:29.81, 25.29 + 4.14