CRAN Package Check Results for Package MapGAM

Last updated on 2026-08-07 20:49:11 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.3-1 10.38 99.30 109.68 ERROR
r-devel-linux-x86_64-debian-gcc 1.3-1 7.62 75.07 82.69 OK
r-devel-linux-x86_64-fedora-clang 1.3-1 8.00 71.49 79.49 OK
r-devel-linux-x86_64-fedora-gcc 1.3-1 75.95 OK
r-devel-windows-x86_64 1.3-1 13.00 107.00 120.00 OK
r-patched-linux-x86_64 1.3-1 11.27 92.96 104.23 OK
r-release-linux-x86_64 1.3-1 10.43 94.43 104.86 OK
r-release-macos-arm64 1.3-1 3.00 25.00 28.00 OK
r-release-macos-x86_64 1.3-1 8.00 98.00 106.00 OK
r-release-windows-x86_64 1.3-1 13.00 113.00 126.00 OK
r-oldrel-macos-arm64 1.3-1 OK
r-oldrel-macos-x86_64 1.3-1 7.00 83.00 90.00 OK
r-oldrel-windows-x86_64 1.3-1 18.00 135.00 153.00 OK

Check Details

Version: 1.3-1
Check: examples
Result: 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 Flavor: r-devel-linux-x86_64-debian-clang