- using R version 4.4.3 (2025-02-28)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-14 (Debian 14.2.0-17) 14.2.0
GNU Fortran (Debian 14.2.0-17) 14.2.0
- running under: Debian GNU/Linux trixie/sid
- 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 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 ‘divvy’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... 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/1s] OK
- checking whether the package can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the package can be unloaded cleanly ... [0s/0s] OK
- checking whether the namespace can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the namespace can be unloaded cleanly ... [0s/0s] OK
- checking loading without being on the library search path ... [0s/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 ... [4s/6s] OK
- checking Rd files ... [1s/1s] OK
- checking Rd metadata ... OK
- checking Rd line widths ... 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/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 ... [12s/15s] ERROR
Running examples in ‘divvy-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### 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 ... [23s/31s] ERROR
Running ‘testthat.R’ [23s/31s]
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 <simpleError> 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 ... [78s/96s] 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
** Processing: /home/hornik/tmp/R.check/r-release-gcc/Work/PKGS/divvy.Rcheck/vign_test/divvy/vignettes/subsampling-vignette_files/figure-html/map data-1.png
576x288 pixels, 8 bits/pixel, 168 colors in palette
Input IDAT size = 24311 bytes
Input file size = 24929 bytes
Trying:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 22843
zc = 9 zm = 8 zs = 1 f = 0
zc = 1 zm = 8 zs = 2 f = 0
zc = 9 zm = 8 zs = 3 f = 0
zc = 9 zm = 8 zs = 0 f = 5
zc = 9 zm = 8 zs = 1 f = 5
zc = 1 zm = 8 zs = 2 f = 5
zc = 9 zm = 8 zs = 3 f = 5
Selecting parameters:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 22843
Output IDAT size = 22843 bytes (1468 bytes decrease)
Output file size = 23437 bytes (1492 bytes = 5.98% decrease)
** Processing: /home/hornik/tmp/R.check/r-release-gcc/Work/PKGS/divvy.Rcheck/vign_test/divvy/vignettes/subsampling-vignette_files/figure-html/map subsample-1.png
576x288 pixels, 8 bits/pixel, 169 colors in palette
Input IDAT size = 24332 bytes
Input file size = 24953 bytes
Trying:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 22865
zc = 9 zm = 8 zs = 1 f = 0
zc = 1 zm = 8 zs = 2 f = 0
zc = 9 zm = 8 zs = 3 f = 0
zc = 9 zm = 8 zs = 0 f = 5
zc = 9 zm = 8 zs = 1 f = 5
zc = 1 zm = 8 zs = 2 f = 5
zc = 9 zm = 8 zs = 3 f = 5
Selecting parameters:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 22865
Output IDAT size = 22865 bytes (1467 bytes decrease)
Output file size = 23462 bytes (1491 bytes = 5.98% decrease)
** Processing: /home/hornik/tmp/R.check/r-release-gcc/Work/PKGS/divvy.Rcheck/vign_test/divvy/vignettes/subsampling-vignette_files/figure-html/count pool size-1.png
576x288 pixels, 3x8 bits/pixel, RGB
Input IDAT size = 63559 bytes
Input file size = 63721 bytes
Trying:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 42150
zc = 9 zm = 8 zs = 1 f = 0
zc = 1 zm = 8 zs = 2 f = 0
zc = 9 zm = 8 zs = 3 f = 0
zc = 9 zm = 8 zs = 0 f = 5
zc = 9 zm = 8 zs = 1 f = 5
zc = 1 zm = 8 zs = 2 f = 5
zc = 9 zm = 8 zs = 3 f = 5
Selecting parameters:
zc = 9 zm = 8 zs = 0 f = 0 IDAT size = 42150
Output IDAT size = 42150 bytes (21409 bytes decrease)
Output file size = 42228 bytes (21493 bytes = 33.73% decrease)
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 ... [4s/6s] OK
- checking HTML version of manual ... [1s/2s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 3 ERRORs