- using R Under development (unstable) (2026-08-10 r90389 ucrt)
- using platform: x86_64-w64-mingw32
- R was compiled by
gcc.exe (GCC) 14.3.0
GNU Fortran (GCC) 14.3.0
- running under: Windows Server 2022 x64 (build 20348)
- using session charset: UTF-8
* current time: 2026-08-11 09:27:14 UTC
- 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 hidden files and directories ... OK
- checking for portable file names ... 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 ... [3s] OK
- checking whether the package can be loaded with stated dependencies ... [3s] OK
- checking whether the package can be unloaded cleanly ... [3s] OK
- checking whether the namespace can be loaded with stated dependencies ... [3s] OK
- checking whether the namespace can be unloaded cleanly ... [3s] OK
- checking loading without being on the library search path ... [3s] 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 ... [11s] OK
- checking Rd files ... [1s] OK
- checking Rd metadata ... 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 ... [1s] OK
- checking data for ASCII and uncompressed saves ... OK
- checking examples ... [10s] 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.1, PROJ 9.7.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 ... [20s] OK
- checking HTML version of manual ... [3s] OK
- DONE
Status: 1 ERROR