- using R version 4.3.0 (2023-04-21)
- using platform: aarch64-apple-darwin20 (64-bit)
- R was compiled by
Apple clang version 14.0.0 (clang-1400.0.29.202)
GNU Fortran (GCC) 12.2.0
- running under: macOS Ventura 13.4
- using session charset: UTF-8
- checking for file ‘DivInsight/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘DivInsight’ version ‘0.1.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 executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘DivInsight’ can be installed ... [38s/45s] OK
See the install log for details.
- checking installed package size ... NOTE
installed size is 9.6Mb
sub-directories of 1Mb or more:
data 8.3Mb
doc 1.1Mb
- 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 R files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [1s/2s] OK
- checking whether the package can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the package can be unloaded cleanly ... [1s/1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the namespace can be unloaded cleanly ... [1s/2s] OK
- checking loading without being on the library search path ... [1s/2s] 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 ... [3s/4s] OK
- checking Rd files ... [0s/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 contents of ‘data’ directory ... OK
- checking data for non-ASCII characters ... [16s/19s] OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [15s/18s] ERROR
Running examples in ‘DivInsight-Ex.R’ failed
The error most likely occurred in:
> ### Name: site_regroup
> ### Title: Regroup Sites
> ### Aliases: site_regroup
>
> ### ** Examples
>
> # regroup the sites with a group radius of 5km instead of 20km
> Colombia_Caquetá_dataframe <- subset(Colombia, stateProvince == "Caquetá")
>
> clusterised_Caquetá <- clusterise_sites(dataframe = Colombia_Caquetá_dataframe,
+ cluster_min_length = 30,
+ group_radius = 20000
+ )
>
> print(clusterised_Caquetá[[2]])
longitude latitude site_group date
1 -75.54658 1.558959 1 2008-06-01
2 -75.81619 1.339552 2 2008-06-01
3 -75.78822 1.289720 2 2016-03-08
4 -75.78894 1.267924 2 2019-02-08
5 -75.65327 1.441539 3 2016-03-09
6 -75.66336 1.456000 3 2016-03-16
7 -75.65286 1.441330 3 2019-01-24
8 -75.65567 1.439890 3 2019-01-25
9 -75.65288 1.385920 3 2019-02-06
10 -75.97152 1.194183 4 2016-03-15
11 -75.61600 1.709897 5 2016-03-22
12 -75.61369 1.716690 5 2016-03-29
13 -75.63117 1.678451 5 2016-03-30
14 -75.63488 1.651888 5 2016-04-13
15 -75.61261 1.717140 5 2018-12-17
16 -75.65950 1.744000 5 2019-01-21
17 -75.59994 1.707670 5 2019-01-23
18 -75.63404 1.657868 5 2019-02-18
19 -75.77772 1.438032 7 2016-05-13
20 -75.76399 1.431014 7 2016-05-19
21 -75.75257 1.403800 7 2018-11-07
22 -75.86772 1.475750 7 2018-11-27
23 -75.74022 1.509550 7 2018-11-28
24 -75.80704 1.469540 7 2018-12-12
25 -75.81220 1.510290 7 2018-12-14
26 -75.88993 1.490180 7 2019-01-23
27 -75.90423 1.688207 8 2017-01-25
28 -75.90526 1.629135 8 2017-01-28
29 -Inf 90.000000 8 2017-01-30
30 -75.01101 1.317384 12 2018-12-04
31 -75.00592 1.321170 12 2019-02-14
>
> clusterised_Caquetá_5km_sites <- site_regroup(
+
+ clusterised_object = clusterised_Caquetá,
+ regroup_radius = 5000
+
+ )
Error in .pointsToMatrix(x) : longitude < -360
Calls: site_regroup -> distm -> .pointsToMatrix
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes in ‘inst/doc’ ... OK
- checking running R code from vignettes ... [1s/1s] NONE
‘Coordinate_References.Rmd’ using ‘UTF-8’... [0s/0s] OK
‘Create_Speccomm.Rmd’ using ‘UTF-8’... [0s/0s] OK
‘Group_Sites.Rmd’ using ‘UTF-8’... [0s/0s] OK
‘Intro_to_DivInsight.Rmd’ using ‘UTF-8’... [0s/0s] OK
- checking re-building of vignette outputs ... [80s/99s] OK
- checking PDF version of manual ... [3s/4s] OK
- DONE
Status: 1 ERROR, 1 NOTE
- using check arguments '--no-clean-on-error '