Last updated on 2025-12-03 05:50:39 CET.
| Package | ERROR | OK |
|---|---|---|
| ecotrends | 13 | |
| fuzzySim | 1 | 12 |
| modEvA | 13 |
Current CRAN status: OK: 13
Current CRAN status: ERROR: 1, OK: 12
Version: 4.38
Check: examples
Result: ERROR
Running examples in 'fuzzySim-Ex.R' failed
The error most likely occurred in:
> ### Name: distMat
> ### Title: Distance matrix for spatial coordinates
> ### Aliases: distMat
>
> ### ** Examples
>
> # generate some random geographical coordinates:
>
> n_points <- 10
>
> set.seed(123)
> coords <- matrix(c(runif(n_points, min = -180, max = 180),
+ runif(n_points, min = -90, max = 90)),
+ ncol = 2)
>
>
> # compute distance matrix:
>
> distMat(coords, dist_method = "euclidean")
Using stats::dist() for distance computation.
Results are less accurate, notably for large distances,
as they don't consider the curvature of the Earth.
1 2 3 4 5 6 7
1 0.00000 201.76258 66.60947 225.23778 280.83578 87.72976 154.48302
2 201.76258 0.00000 142.39827 40.29507 83.54018 279.20641 100.82676
3 66.60947 142.39827 0.00000 171.69673 217.50570 136.81120 88.72082
4 225.23778 40.29507 171.69673 0.00000 87.04042 307.18451 140.64002
5 280.83578 83.54018 217.50570 87.04042 0.00000 352.65814 150.67029
6 87.72976 279.20641 136.81120 307.18451 352.65814 0.00000 209.82059
7 154.48302 100.82676 88.72082 140.64002 150.67029 209.82059 0.00000
8 272.99207 82.97700 208.26704 95.56325 20.47503 341.73777 136.19768
9 147.77706 88.21072 81.18625 127.23744 145.78974 209.19739 16.95606
10 60.85484 149.65406 52.71553 168.19185 232.02830 148.30790 130.08619
8 9 10
1 272.99207 147.77706 60.85484
2 82.97700 88.21072 149.65406
3 208.26704 81.18625 52.71553
4 95.56325 127.23744 168.19185
5 20.47503 145.78974 232.02830
6 341.73777 209.19739 148.30790
7 136.19768 16.95606 130.08619
8 0.00000 133.10231 227.13232
9 133.10231 0.00000 117.83742
10 227.13232 117.83742 0.00000
>
> distMat(coords, dist_method = "auto")
Warning: [is.lonlat] assuming lon/lat crs
-> using 'cosine' distance
Warning: [is.lonlat] assuming lon/lat crs
Warning: PROJ: proj_create_from_database: Cannot find proj.db (GDAL error 1)
Warning: [set_crs] Cannot set SRS to vector: empty srs
Warning in distMat(coords, dist_method = "auto") :
Null or empty CRS; assuming EPSG:4326.
Error: [distance] crs not defined
Execution halted
Flavor: r-oldrel-windows-x86_64
Current CRAN status: OK: 13