Last updated on 2024-12-23 12:49:38 CET.
Package | ERROR | NOTE | OK |
---|---|---|---|
geosed | 1 | 8 | 4 |
Current CRAN status: ERROR: 1, NOTE: 8, OK: 4
Version: 0.1.1
Check: examples
Result: ERROR
Running examples in ‘geosed-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: geo_midpoint
> ### Title: Point of Equidistance to Up to Three Longitude, Latitude Points
> ### Aliases: geo_midpoint
> ### Keywords: circle disk enclosing geo latitude longitude sed smallest
>
> ### ** Examples
>
>
> # Load required packages
> require(mapview)
Loading required package: mapview
Warning in library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
there is no package called ‘mapview’
> require(sp)
Loading required package: sp
>
> # Create sample geo dataset
> sample_coord <-
+ matrix(
+ c(
+ sample(327131680:419648450, 3) / 10000000,
+ sample(-1147301410:-1241938690, 3) / 10000000
+ ),
+ ncol = 2
+ )
>
> # Generate circumcenter and radius
> gmp <- geo_midpoint(sample_coord)
>
> # Find distance to circumcenter
> radius <- geo_point_dist(rbind(sample_coord[1, ], gmp))
>
> # Create 80 sided polygon based on gmp's center and radius
> gmp_poly <- geo_surround_poly(gmp, radius, 80)
>
> # Join all the points into a single matrix
> bound_poly <- rbind(sample_coord, as.vector(gmp), gmp_poly)
>
> # Create SpacialPoints object and pass to mapview for visualization
> mapview(
+ SpatialPoints(
+ bound_poly[,c(2, 1)],
+ proj4string = CRS("+proj=longlat +datum=WGS84")
+ )
+ )
Error in mapview(SpatialPoints(bound_poly[, c(2, 1)], proj4string = CRS("+proj=longlat +datum=WGS84"))) :
could not find function "mapview"
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.1.1
Check: LazyData
Result: NOTE
'LazyData' is specified without a 'data' directory
Flavors: r-patched-linux-x86_64, r-release-linux-x86_64, r-release-macos-arm64, r-release-macos-x86_64, r-release-windows-x86_64, r-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-oldrel-windows-x86_64