- using R Under development (unstable) (2024-03-22 r86169)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-13 (GCC) 13.2.0
GNU Fortran (GCC) 13.2.0
- running under: Fedora Linux 36 (Workstation Edition)
- using session charset: UTF-8
- using option ‘--no-stop-on-test-error’
- checking for file ‘mapmisc/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘mapmisc’ version ‘2.0.6’
- 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 ‘mapmisc’ can be installed ... [48s/124s] OK
See the install log for details.
- 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 code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [12s/32s] OK
- checking whether the package can be loaded with stated dependencies ... [12s/33s] OK
- checking whether the package can be unloaded cleanly ... [12s/36s] OK
- checking whether the namespace can be loaded with stated dependencies ... [12s/33s] OK
- checking whether the namespace can be unloaded cleanly ... [12s/36s] OK
- checking loading without being on the library search path ... [12s/31s] OK
- checking whether startup messages can be suppressed ... [12s/34s] OK
- checking use of S3 registration ... 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 ... [68s/185s] 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 ... [12s/26s] NOTE
Note: found 1 marked UTF-8 string
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking line endings in Makefiles ... OK
- checking for GNU extensions in Makefiles ... OK
- checking include directives in Makefiles ... OK
- checking sizes of PDF files under ‘inst/doc’ ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [23s/214s] ERROR
Running examples in ‘mapmisc-Ex.R’ failed
The error most likely occurred in:
> ### Name: modis
> ### Title: MODIS tiles and projection
> ### Aliases: modis crsModis getModisRaster getModisTiles getDegreeRaster
>
> ### ** Examples
>
>
> crsModis
[1] "PROJCRS[\"unknown\",\n BASEGEOGCRS[\"unknown\",\n DATUM[\"World Geodetic System 1984\",\n ELLIPSOID[\"WGS 84\",6378137,298.257223563,\n LENGTHUNIT[\"metre\",1]],\n ID[\"EPSG\",6326]],\n PRIMEM[\"Greenwich\",0,\n ANGLEUNIT[\"degree\",0.0174532925199433],\n ID[\"EPSG\",8901]]],\n CONVERSION[\"unknown\",\n METHOD[\"Sinusoidal\"],\n PARAMETER[\"Longitude of natural origin\",0,\n ANGLEUNIT[\"degree\",0.0174532925199433],\n ID[\"EPSG\",8802]],\n PARAMETER[\"False easting\",0,\n LENGTHUNIT[\"metre\",1],\n ID[\"EPSG\",8806]],\n PARAMETER[\"False northing\",0,\n LENGTHUNIT[\"metre\",1],\n ID[\"EPSG\",8807]]],\n CS[Cartesian,2],\n AXIS[\"(E)\",east,\n ORDER[1],\n LENGTHUNIT[\"metre\",1,\n ID[\"EPSG\",9001]]],\n AXIS[\"(N)\",north,\n ORDER[2],\n LENGTHUNIT[\"metre\",1,\n ID[\"EPSG\",9001]]]]"
>
> myPointLL = vect(cbind(c(5:6),10:11), crs = crsLL)
>
>
> getModisTiles(myPointLL)
ID x y ns ew tile
28265 28265 4 11 n011 e004 n011e004
28266 28266 5 11 n011 e005 n011e005
28267 28267 6 11 n011 e006 n011e006
28625 28625 4 10 n010 e004 n010e004
28626 28626 5 10 n010 e005 n010e005
28627 28627 6 10 n010 e006 n010e006
28985 28985 4 9 n009 e004 n009e004
28986 28986 5 9 n009 e005 n009e005
28987 28987 6 9 n009 e006 n009e006
>
> getModisTiles(myPointLL, getDegreeRaster())
ID x y ns ew tile
28265 28265 4 11 n011 e004 n011e004
28266 28266 5 11 n011 e005 n011e005
28267 28267 6 11 n011 e006 n011e006
28625 28625 4 10 n010 e004 n010e004
28626 28626 5 10 n010 e005 n010e005
28627 28627 6 10 n010 e006 n010e006
28985 28985 4 9 n009 e004 n009e004
28986 28986 5 9 n009 e005 n009e005
28987 28987 6 9 n009 e006 n009e006
>
>
>
> modisUrl = 'https://e4ftl01.cr.usgs.gov/MOTA/MCD12Q1.061/2002.01.01/'
> desiredTiles = paste0("(",
+ paste(getModisTiles(myPointLL, getModisRaster())[,'tile'], collapse='|'),
+ ").*.hdf$")
>
> if(requireNamespace("RCurl", quietly=TRUE) & requireNamespace("XML", quietly=TRUE)) {
+ theFiles = grep(desiredTiles,
+ XML::getHTMLLinks(RCurl::getURL(
+ modisUrl,ftp.use.epsv=FALSE,
+ dirlistonly = TRUE)), value=TRUE)
+ paste0(modisUrl, theFiles)
+ }
Error in function (type, msg, asError = TRUE) :
Failed to connect to e4ftl01.cr.usgs.gov port 443 after 131123 ms: Connection timed out
Calls: grep ... <Anonymous> -> <Anonymous> -> curlPerform -> <Anonymous> -> fun
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [195s/505s] OK
Running ‘colourScale.R’ [15s/32s]
Running ‘omerc.R’ [46s/113s]
Running ‘openmap.R’ [99s/271s]
Running ‘worldMap.R’ [35s/87s]
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [5m/14m] OK
- checking PDF version of manual ... [8s/20s] OK
- checking HTML version of manual ... OK
- checking for non-standard things in the check directory ... OK
- checking for detritus in the temp directory ... OK
- DONE
Status: 1 ERROR, 1 NOTE