- using R version 4.3.0 alpha (2023-03-26 r84066 ucrt)
- using platform: x86_64-w64-mingw32 (64-bit)
- R was compiled by
gcc.exe (GCC) 12.2.0
GNU Fortran (GCC) 12.2.0
- running under: Windows Server 2022 x64 (build 20348)
- using session charset: UTF-8
- checking for file 'rasterpic/DESCRIPTION' ... OK
- this is package 'rasterpic' version '0.2.1'
- 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 'rasterpic' 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 R 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 ... [1s] 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 installed files from 'inst/doc' ... OK
- checking files in 'vignettes' ... OK
- checking examples ... [9s] OK
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [26s] ERROR
Running 'testthat.R' [26s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(rasterpic)
>
> test_check("rasterpic")
'crs' is NA.
'mask' only available when 'x' is an 'sf/sfc/SpatVector' object
'mask' only available when 'x' is an 'sf/sfc/SpatVector' object
'mask' only available when 'x' is an 'sf/sfc/SpatVector' object
'crs' is NA.
'crs' is NA.
'crs' is NA.
'mask' only available when 'x' is an 'sf/sfc/SpatVector' object
[ FAIL 1 | WARN 0 | SKIP 26 | PASS 258 ]
══ Skipped tests ═══════════════════════════════════════════════════════════════
• On CRAN (26)
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-expand.R:7:3'): Expand factor ──────────────────────────────────
<std::bad_alloc/C++Error/error/condition>
Error: std::bad_alloc
Backtrace:
▆
1. └─rasterpic::rasterpic_img(x, img, expand = 0) at test-expand.R:7:2
2. └─rasterpic:::rpic_read(img, crs)
3. ├─terra::rast(pngfile)
4. └─terra::rast(pngfile)
5. └─terra (local) .local(x, ...)
6. ├─terra::`values<-`(`*tmp*`, value = `<dbl[,800,3]>`)
7. └─terra::`values<-`(`*tmp*`, value = `<dbl[,800,3]>`)
8. ├─terra::setValues(x, value, keepnames = TRUE)
9. └─terra::setValues(x, value, keepnames = TRUE)
10. └─terra (local) .local(x, values, ...)
11. └─y@ptr$setValues(values, opt)
[ FAIL 1 | WARN 0 | SKIP 26 | PASS 258 ]
Error: Test failures
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes in 'inst/doc' ... OK
- checking re-building of vignette outputs ... [14s] OK
- checking PDF version of manual ... [23s] OK
- checking HTML version of manual ... [1s] OK
- DONE
Status: 1 ERROR