- 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 'fuzzySim/DESCRIPTION' ... OK
- checking extension type ... Package
- this is package 'fuzzySim' version '4.38'
- 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 'fuzzySim' can be installed ... OK
See the install log for details.
- checking installed package size ... OK
- checking package 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 ... [8s] OK
- checking whether the package can be loaded with stated dependencies ... [8s] OK
- checking whether the package can be unloaded cleanly ... [8s] OK
- checking whether the namespace can be loaded with stated dependencies ... [8s] OK
- checking whether the namespace can be unloaded cleanly ... [8s] OK
- checking loading without being on the library search path ... [8s] 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 ... [2s] 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 ... [0s] OK
- checking data for ASCII and uncompressed saves ... OK
- checking examples ... [11s] 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
- checking PDF version of manual ... [21s] OK
- checking HTML version of manual ... [11s] OK
- DONE
Status: 1 ERROR