* using log directory 'd:/Rcompile/CRANpkg/local/4.4/divvy.Rcheck' * 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 'divvy/DESCRIPTION' ... OK * this is package 'divvy' version '1.0.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 hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'divvy' can be installed ... OK * checking installed package size ... OK * 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 code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [0s] OK * checking whether the package can be loaded with stated dependencies ... [0s] OK * checking whether the package can be unloaded cleanly ... [0s] OK * checking whether the namespace can be loaded with stated dependencies ... [0s] OK * checking whether the namespace can be unloaded cleanly ... [0s] OK * checking loading without being on the library search path ... [0s] 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 ... [3s] OK * checking Rd files ... [1s] 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 ... [1s] 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 ... [11s] ERROR Running examples in 'divvy-Ex.R' failed The error most likely occurred in: > ### Name: rangeSize > ### Title: Calculate common metrics of spatial distribution > ### Aliases: rangeSize > > ### ** Examples > > # generate 20 occurrences for a pseudo-species > # centred on Yellowstone National Park (latitude-longitude) > # normally distributed with a standard deviation ~110 km > set.seed(2) > x <- rnorm(20, 110.5885, 2) > y <- rnorm(20, 44.4280, 1) > pts <- cbind(x,y) > > rangeSize(pts) Error in UseMethod("units") : no applicable method for 'units' applied to an object of class "c('integer', 'numeric')" Calls: rangeSize -> cbind -> cbind -> units Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [22s] ERROR Running 'testthat.R' [22s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(divvy) > > test_check("divvy") [ FAIL 4 | WARN 0 | SKIP 0 | PASS 22 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test_calc_eco_variables.R:4:3'): rangeSize returns appropriate values ── Error in `UseMethod("units")`: no applicable method for 'units' applied to an object of class "c('integer', 'numeric')" Backtrace: ▆ 1. └─divvy::rangeSize(xy) at test_calc_eco_variables.R:4:3 2. └─base::cbind(...) 3. └─units (local) cbind(deparse.level, ...) 4. └─base::units(dots[[1]]) ── Error ('test_calc_eco_variables.R:19:3'): sdSumry returns values within basic tolerance limits ── Error in `UseMethod("units")`: no applicable method for 'units' applied to an object of class "c('integer', 'numeric')" Backtrace: ▆ 1. └─divvy::sdSumry(...) at test_calc_eco_variables.R:19:3 2. └─divvy (local) dfsumry(dat) 3. └─divvy::rangeSize(coords = locs, crs = crs) 4. └─base::cbind(...) 5. └─units (local) cbind(deparse.level, ...) 6. └─base::units(dots[[1]]) ── Failure ('test_calc_eco_variables.R:42:3'): rangeSize and sdSumry accept projected coords ── Expected `rangeSize(bivAlt[, xyCell], crs = prj)` to run without any conditions. i Actually got a with text: no applicable method for 'units' applied to an object of class "c('integer', 'numeric')" ── Error ('test_calc_eco_variables.R:43:3'): rangeSize and sdSumry accept projected coords ── Error in `UseMethod("units")`: no applicable method for 'units' applied to an object of class "c('integer', 'numeric')" Backtrace: ▆ 1. └─divvy::rangeSize(bivAlt[, xyCell], crs = prj) at test_calc_eco_variables.R:43:3 2. └─base::cbind(...) 3. └─units (local) cbind(deparse.level, ...) 4. └─base::units(dots[[1]]) [ FAIL 4 | WARN 0 | SKIP 0 | PASS 22 ] Error: Test failures Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [100s] ERROR Error(s) in re-building vignettes: --- re-building 'habitat-rangesize-case-study.Rmd' using rmarkdown --- finished re-building 'habitat-rangesize-case-study.Rmd' --- re-building 'subsampling-vignette.Rmd' using rmarkdown Quitting from lines 254-271 [meta data] (subsampling-vignette.Rmd) Error: processing vignette 'subsampling-vignette.Rmd' failed with diagnostics: no applicable method for 'units' applied to an object of class "c('integer', 'numeric')" --- failed re-building 'subsampling-vignette.Rmd' SUMMARY: processing the following file failed: 'subsampling-vignette.Rmd' Error: Vignette re-building failed. Execution halted * checking PDF version of manual ... [21s] OK * checking HTML version of manual ... [3s] OK * DONE Status: 3 ERRORs