* using log directory ‘/Users/ripley/R/packages/tests-devel/DivInsight.Rcheck’ * using R Under development (unstable) (2023-08-23 r85001) * using platform: aarch64-apple-darwin22.6.0 * R was compiled by Apple clang version 15.0.0 (clang-1500.0.40.1) GNU Fortran (GCC) 12.2.0 * running under: macOS Ventura 13.5.1 * using session charset: UTF-8 * using option ‘--no-stop-on-test-error’ * 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 ... [28s/28s] OK * checking installed package size ... NOTE installed size is 8.8Mb sub-directories of 1Mb or more: data 7.6Mb 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 ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... 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 ... OK * checking Rd files ... 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 ... [13s/13s] NOTE Note: found 871164 marked UTF-8 strings * 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 ... [12s/12s] 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 re-building of vignette outputs ... [58s/62s] OK * checking PDF version of manual ... OK * checking HTML version of manual ... OK * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR, 2 NOTEs See ‘/Users/ripley/R/packages/tests-devel/DivInsight.Rcheck/00check.log’ for details. 163.52 real 135.31 user 19.90 sys