* using log directory 'd:/Rcompile/CRANpkg/local/4.4/MRG.Rcheck' * using R version 4.4.3 (2025-02-28 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.3.0 GNU Fortran (GCC) 13.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'MRG/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'MRG' version '0.3.21' * package encoding: UTF-8 * 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 'MRG' can be installed ... OK * checking installed package size ... OK * 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] OK * checking whether the package can be loaded with stated dependencies ... [10s] OK * checking whether the package can be unloaded cleanly ... [11s] OK * checking whether the namespace can be loaded with stated dependencies ... [10s] OK * checking whether the namespace can be unloaded cleanly ... [10s] OK * checking loading without being on the library search path ... [12s] 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 ... [28s] 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 LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [22s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [16s] ERROR Running 'multiResGrid.R' [16s] Running the tests in 'tests/multiResGrid.R' failed. Complete output: > s1 = Sys.time() > library(MRG) > library(tidyr) > library(dplyr) Attaching package: 'dplyr' The following objects are masked from 'package:stats': filter, lag The following objects are masked from 'package:base': intersect, setdiff, setequal, union > # Neccessary to silence sf startup messages > suppressMessages(library(sf)) > if (require(giscoR, quietly = TRUE)) { + # Read nuts borders, used for extracting smaller data set + borders = gisco_get_nuts(nuts_level = 2) + dkb = borders[borders$CNTR_CODE == "DK",] %>% st_transform(crs = 3035) + } else { + mrgpath = find.package("MRG") + load(file.path(mrgpath, "ex/dkb.rda")) + } > #' > # These are SYNTHETIC agricultural FSS data > data(ifs_dk) # Census data > ifs_weight = ifs_dk %>% dplyr::filter(Sample == 1) # Extract weighted subsample > > # Create spatial data > ifg = fssgeo(ifs_dk, locAdj = "LL") > fsg = fssgeo(ifs_weight, locAdj = "LL") > > ifg$dkb = st_join(ifg, dkb)$NUTS_ID > ifg = ifg[!is.na(ifg$dkb) & ifg$dkb == "DK01",] > fsg$dkb = st_join(fsg, dkb)$NUTS_ID > fsg = fsg[!is.na(fsg$dkb) & fsg$dkb == "DK01",] > > ifg$ft = as.numeric(substr(ifg$FARMTYPE, 3, 4))^2 > > s2 = Sys.time() > #' > # Set the base resolutions, and create a hierarchical list with gridded data > ress = c(1,5,10,20,40)*1000 > # Gridding Utilized agricultural area (UAA), organic UAA and ft together > ifl = gridData(ifg, c("UAA", "UAAXK0000_ORG", "ft"), res = ress) Error: [rast] empty srs In addition: Warning message: PROJ: proj_create_from_database: Cannot find proj.db (GDAL error 1) Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [3s] OK * checking PDF version of manual ... [19s] OK * checking HTML version of manual ... [5s] OK * DONE Status: 1 ERROR