- using R Under development (unstable) (2026-08-17 r90424)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
clang version 22.1.8
flang version 22.1.8
- running under: Fedora Linux 44 (Server Edition)
- using session charset: UTF-8
* current time: 2026-08-19 10:25:17 UTC
- using option ‘--no-stop-on-test-error’
- checking for file ‘MapGAM/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘MapGAM’ version ‘1.3-1’
- 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 ‘MapGAM’ can be installed ... OK
See the install log for details.
- checking installed package size ... OK
- checking package 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 ... 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 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 ... [14s/15s] 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 data for ASCII and uncompressed saves ... OK
- checking examples ... ERROR
Running examples in ‘MapGAM-Ex.R’ failed
The error most likely occurred in:
> ### Name: trimdata
> ### Title: Trim a Data Set To Map Boundaries
> ### Aliases: trimdata
> ### Keywords: misc
>
> ### ** Examples
>
>
> # This example uses the "sf" package to read in an external ESRI shapefile for Maine
> if (require(sf)) {
+ # download example shapefile zip from github, and unzip
+ zippath <- paste(tempdir(),"Income_schooling.zip",sep="/")
+ download.file("https://github.com/mgimond/Spatial/raw/main/Data/Income_schooling.zip",
+ destfile = zippath, mode='wb')
+ unzip(zippath, exdir = tempdir())
+
+ # read shapefile into sf format
+ shppath <- paste(tempdir(),"Income_schooling.shp",sep="/")
+ basemap0 <- st_read(shppath)
+
+ # Create example data by randomly sampling within bounding box
+ rs <- st_bbox(basemap0) # get ranges of X and Y
+ MEdata <- data.frame(X=runif(300,rs[1],rs[3]), Y=runif(300,rs[2],rs[4]))
+ plot(basemap0["NAME"], reset=FALSE)
+ plot(st_as_sf(MEdata,coords=1:2), add=TRUE) # plot data in black
+
+ # trim data to basemap, and plot trimmed data with red X's
+ dME <- trimdata(MEdata, basemap0)
+ plot(st_as_sf(dME,coords=1:2), col="red", pch="X", add=TRUE)
+ dev.off() # clear map settings
+ }
Loading required package: sf
Linking to GEOS 3.14.1, GDAL 3.12.4, PROJ 9.8.1; sf_use_s2() is TRUE
trying URL 'https://github.com/mgimond/Spatial/raw/main/Data/Income_schooling.zip'
Warning in download.file("https://github.com/mgimond/Spatial/raw/main/Data/Income_schooling.zip", :
cannot open URL 'https://github.com/mgimond/Spatial/raw/main/Data/Income_schooling.zip': HTTP status was '404 Not Found'
Error in download.file("https://github.com/mgimond/Spatial/raw/main/Data/Income_schooling.zip", :
cannot open URL 'https://github.com/mgimond/Spatial/raw/main/Data/Income_schooling.zip'
Execution halted
- checking PDF version of manual ... 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