* using log directory 'd:/Rcompile/CRANpkg/local/4.5/adw.Rcheck' * using R Under development (unstable) (2024-04-30 r86503 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.2.0 GNU Fortran (GCC) 13.2.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'adw/DESCRIPTION' ... OK * this is package 'adw' version '0.4.0' * 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 'adw' 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 ... [5s] OK * checking whether the package can be loaded with stated dependencies ... [5s] OK * checking whether the package can be unloaded cleanly ... [5s] OK * checking whether the namespace can be loaded with stated dependencies ... [5s] OK * checking whether the namespace can be unloaded cleanly ... [5s] OK * checking loading without being on the library search path ... [5s] 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 ... [13s] OK * checking Rd files ... [0s] 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 installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [16s] ERROR Running examples in 'adw-Ex.R' failed The error most likely occurred in: > ### Name: adw > ### Title: Angular Distance Weighting Interpolation. > ### Aliases: adw > > ### ** Examples > > set.seed(2) > dd <- data.frame(lon = runif(100, min = 110, max = 117), + lat = runif(100, min = 31, max = 37), + value = runif(100, min = -10, max = 10)) > head(dd) lon lat value 1 111.2942 32.20561 7.173832 2 114.9166 33.56583 2.903207 3 114.0133 36.88360 2.055973 4 111.1764 35.97353 9.439614 5 116.6069 32.72184 -2.466855 6 116.6043 34.57550 6.382290 > > # example 1 > grd <- adw(dd, extent = c(110, 117, 31, 37), gridsize = 0.5, cdd = 500) > head(grd) lon lat value 1 110.25 31.25 0.09027313 2 110.75 31.25 1.00411953 3 111.25 31.25 -0.35292188 4 111.75 31.25 -0.47570806 5 112.25 31.25 -1.57521787 6 112.75 31.25 -1.10541492 > > # example 2 > hmap <- cnmap::getMap(code = "410000") |> sf::st_make_valid() # return a 'sf' object. Warning in CPL_read_ogr(dsn, layer, query, as.character(options), quiet, : GDAL Error 1: Could not resolve host: geo.datav.aliyun.com Error: Cannot open "https://geo.datav.aliyun.com/areas_v3/bound/410000.json"; The file doesn't seem to exist. Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [18s] ERROR Error(s) in re-building vignettes: --- re-building 'Introduction.Rmd' using rmarkdown Quitting from lines at lines 48-74 [unnamed-chunk-3] (Introduction.Rmd) Error: processing vignette 'Introduction.Rmd' failed with diagnostics: Cannot open "https://geo.datav.aliyun.com/areas_v3/bound/410000.json"; The file doesn't seem to exist. --- failed re-building 'Introduction.Rmd' SUMMARY: processing the following file failed: 'Introduction.Rmd' Error: Vignette re-building failed. Execution halted * checking PDF version of manual ... [21s] OK * checking HTML version of manual ... [2s] OK * DONE Status: 2 ERRORs