- using R version 4.6.1 Patched (2026-08-10 r90391)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-15 (Debian 15.3.0-2) 15.3.0
GNU Fortran (Debian 15.3.0-2) 15.3.0
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
* current time: 2026-08-12 05:44:17 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 executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking serialization versions ... OK
- checking whether package ‘MapGAM’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... 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/3s] OK
- checking whether the package can be loaded with stated dependencies ... [3s/3s] OK
- checking whether the package can be unloaded cleanly ... [3s/4s] OK
- checking whether the namespace can be loaded with stated dependencies ... [3s/4s] OK
- checking whether the namespace can be unloaded cleanly ... [3s/3s] OK
- checking loading without being on the library search path ... [3s/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 ... [19s/24s] OK
- checking Rd files ... [1s/1s] 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 ... [1s/1s] OK
- checking data for ASCII and uncompressed saves ... OK
- checking examples ... [5s/8s] ERROR
Running examples in ‘MapGAM-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### 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.13.2, 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 ... [6s/8s] OK
- checking HTML version of manual ... [5s/7s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR