Last updated on 2025-07-18 18:51:56 CEST.
Package | ERROR | OK |
---|---|---|
adw | 1 | 12 |
cnmap | 13 |
Current CRAN status: ERROR: 1, OK: 12
Version: 0.4.0
Check: examples
Result: ERROR
Running examples in ‘adw-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### 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.
> grd <- adw(dd, extent = hmap, gridsize = 0.5, cdd = 500)
> head(grd)
lon lat value
9 114.6105 31.63345 -0.6700108
10 115.1105 31.63345 -0.9038167
21 114.1105 32.13345 -2.0268419
22 114.6105 32.13345 -2.9464863
23 115.1105 32.13345 -2.5912237
24 115.6105 32.13345 -0.1503511
>
> # example 3
> hmap <- cnmap::getMap(code = "410000", returnClass = "sv") # return a 'SpatVector' object.
Warning in p@pntr$read(x, layer, query, extent, filter, proxy, what, dialect, :
GDAL Error 1: Recv failure: Connection reset by peer
Error: [vect] file does not exist: https://geo.datav.aliyun.com/areas_v3/bound/410000.json
Execution halted
Flavor: r-devel-linux-x86_64-debian-clang
Version: 0.4.0
Check: re-building of vignette outputs
Result: ERROR
Error(s) in re-building vignettes:
...
--- re-building ‘Introduction.Rmd’ using rmarkdown
Quitting from Introduction.Rmd:81-101 [unnamed-chunk-4]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error:
! Cannot open "https://geo.datav.aliyun.com/areas_v3/bound/410000.json"; The file doesn't seem to exist.
---
Backtrace:
▆
1. ├─sf::st_make_valid(getMap(name = "河南省", returnClass = "sf"))
2. └─cnmap::getMap(name = "河南省", returnClass = "sf")
3. └─sf::read_sf(urlmap)
4. ├─sf::st_read(...)
5. └─sf:::st_read.character(...)
6. └─sf:::CPL_read_ogr(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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
Flavor: r-devel-linux-x86_64-debian-clang
Current CRAN status: OK: 13