* using log directory 'd:/Rcompile/CRANpkg/local/4.3/ElevDistr.Rcheck' * using R version 4.3.3 (2024-02-29 ucrt) * using platform: x86_64-w64-mingw32 (64-bit) * R was compiled by gcc.exe (GCC) 12.3.0 GNU Fortran (GCC) 12.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'ElevDistr/DESCRIPTION' ... OK * this is package 'ElevDistr' version '1.0.8' * 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 'ElevDistr' 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 ... [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 ... [4s] 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 ... [2s] 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: > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/tests.html > # * https://testthat.r-lib.org/reference/test_package.html#special-files > > library(testthat) > library(ElevDistr) > > test_check("ElevDistr") | | | 0% | |============================================================| 100% | | | 0% | |============================================================| 100% | | | 0% | |============================================================| 100% | | | 0% | |==================== | 33% | |======================================== | 67% | |============================================================| 100% [ FAIL 2 | WARN 22 | SKIP 0 | PASS 159 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-classify_above_treeline.R:8:3'): output type is correct ──────── Error: [extract] cannot read values Backtrace: ▆ 1. └─ElevDistr::classify_above_treeline(point, gst, gsl, 6.4, 94) at test-classify_above_treeline.R:8:3 2. ├─base::cbind(...) 3. │ └─base::cbind(deparse.level, ...) 4. │ └─base::data.frame(..., check.names = FALSE) 5. ├─terra::extract(gstRaster, coords[, 1:2]) 6. └─terra::extract(gstRaster, coords[, 1:2]) 7. ├─terra::extract(x, v, ...) 8. └─terra::extract(x, v, ...) 9. └─terra (local) .local(x, y, ...) 10. └─terra:::messages(x, "extract") 11. └─terra:::error(f, x@ptr$getError()) ── Error ('test-generate_point_df.R:7:3'): output type is correct ────────────── Error: [extract] cannot read values Backtrace: ▆ 1. └─ElevDistr::generate_point_df(gst, gsl, 10, 6.4, 94) at test-generate_point_df.R:7:3 2. ├─terra::extract(gstRaster, point) 3. └─terra::extract(gstRaster, point) 4. ├─terra::extract(x, v, ...) 5. └─terra::extract(x, v, ...) 6. └─terra (local) .local(x, y, ...) 7. └─terra:::messages(x, "extract") 8. └─terra:::error(f, x@ptr$getError()) [ FAIL 2 | WARN 22 | SKIP 0 | PASS 159 ] 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 ... [10s] ERROR Error(s) in re-building vignettes: --- re-building 'ElevDistr.Rmd' using rmarkdown Quitting from lines 38-45 [unnamed-chunk-5] (ElevDistr.Rmd) Error: processing vignette 'ElevDistr.Rmd' failed with diagnostics: [rast] file does not exist: /vsicurl/https://os.zhdk.cloud.switch.ch/envicloud/chelsa/chelsa_V2/GLOBAL/climatologies/1981-2010/bio/CHELSA_gst_1981-2010_V.2.1.tif --- failed re-building 'ElevDistr.Rmd' SUMMARY: processing the following file failed: 'ElevDistr.Rmd' Error: Vignette re-building failed. Execution halted * checking PDF version of manual ... [18s] OK * checking HTML version of manual ... [2s] OK * DONE Status: 2 ERRORs