- using R Under development (unstable) (2025-01-24 r87627)
- using platform: aarch64-apple-darwin20
- R was compiled by
Apple clang version 14.0.0 (clang-1400.0.29.202)
GNU Fortran (GCC) 14.2.0
- running under: macOS Ventura 13.4
- using session charset: UTF-8
- checking for file ‘sfhotspot/DESCRIPTION’ ... OK
- this is package ‘sfhotspot’ version ‘0.9.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 ‘sfhotspot’ can be installed ... [2s/2s] OK
See the install log for details.
- 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/0s] 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 ... [1s/1s] 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 ... [2s/2s] OK
- checking Rd files ... [0s/0s] 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 ... [0s/0s] 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 ... [1s/1s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [37s/38s] ERROR
Running ‘testthat.R’ [37s/38s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(sfhotspot)
>
> test_check("sfhotspot")
`period` set to 28 days automatically
The range of dates in the data is not a multiple of the chosen period
ℹ The final period contains only 3 days
ℹ Set `collapse = TRUE` to collapse this period into the penultimate period
Cell size set to 0.00524 degrees automatically
Cell size set to 0.00524 degrees automatically
Cell size set to 0.00524 degrees automatically
Cell size set to 0.00524 degrees automatically
Cell size set to 0.00344 degrees automatically
[ FAIL 5 | WARN 0 | SKIP 1 | PASS 168 ]
══ Skipped tests (1) ═══════════════════════════════════════════════════════════
• On CRAN (1): 'test-set_cell_size.R:45:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-autoplot.R:6:1'): (code run outside of `test_that()`) ──────────
<packageNotFoundError/error/condition>
Error in `loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])`: there is no package called 'terra'
Backtrace:
▆
1. ├─sfhotspot::hotspot_kde(...) at test-autoplot.R:6:1
2. │ └─sfhotspot:::kernel_density(...)
3. │ └─base::suppressMessages(...)
4. │ └─base::withCallingHandlers(...)
5. └─base::loadNamespace(x)
6. ├─base::namespaceImportFrom(...)
7. │ └─base::asNamespace(ns)
8. └─base::loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
9. ├─base::namespaceImport(...)
10. └─base::loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])
11. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
12. └─base (local) withOneRestart(expr, restarts[[1L]])
13. └─base (local) doWithOneRestart(return(expr), restart)
── Error ('test-hotspot_dual_kde.R:8:1'): (code run outside of `test_that()`) ──
<packageNotFoundError/error/condition>
Error in `loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])`: there is no package called 'terra'
Backtrace:
▆
1. ├─sfhotspot::hotspot_dual_kde(...) at test-hotspot_dual_kde.R:8:1
2. │ └─sfhotspot:::kernel_density(...)
3. │ └─base::suppressMessages(...)
4. │ └─base::withCallingHandlers(...)
5. └─base::loadNamespace(x)
6. ├─base::namespaceImportFrom(...)
7. │ └─base::asNamespace(ns)
8. └─base::loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
9. ├─base::namespaceImport(...)
10. └─base::loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])
11. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
12. └─base (local) withOneRestart(expr, restarts[[1L]])
13. └─base (local) doWithOneRestart(return(expr), restart)
── Error ('test-hotspot_gistar.R:6:1'): (code run outside of `test_that()`) ────
<packageNotFoundError/error/condition>
Error in `loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])`: there is no package called 'terra'
Backtrace:
▆
1. ├─sfhotspot::hotspot_gistar(data_sf, quiet = TRUE) at test-hotspot_gistar.R:6:1
2. │ └─sfhotspot:::kernel_density(...)
3. │ └─base::suppressMessages(...)
4. │ └─base::withCallingHandlers(...)
5. └─base::loadNamespace(x)
6. ├─base::namespaceImportFrom(...)
7. │ └─base::asNamespace(ns)
8. └─base::loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
9. ├─base::namespaceImport(...)
10. └─base::loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])
11. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
12. └─base (local) withOneRestart(expr, restarts[[1L]])
13. └─base (local) doWithOneRestart(return(expr), restart)
── Error ('test-hotspot_kde.R:9:1'): (code run outside of `test_that()`) ───────
<packageNotFoundError/error/condition>
Error in `loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])`: there is no package called 'terra'
Backtrace:
▆
1. ├─sfhotspot::hotspot_kde(...) at test-hotspot_kde.R:9:1
2. │ └─sfhotspot:::kernel_density(...)
3. │ └─base::suppressMessages(...)
4. │ └─base::withCallingHandlers(...)
5. └─base::loadNamespace(x)
6. ├─base::namespaceImportFrom(...)
7. │ └─base::asNamespace(ns)
8. └─base::loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
9. ├─base::namespaceImport(...)
10. └─base::loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])
11. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
12. └─base (local) withOneRestart(expr, restarts[[1L]])
13. └─base (local) doWithOneRestart(return(expr), restart)
── Error ('test-kernel_density.R:19:1'): (code run outside of `test_that()`) ───
<packageNotFoundError/error/condition>
Error in `loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])`: there is no package called 'terra'
Backtrace:
▆
1. ├─sfhotspot:::kernel_density(data = data_sf, grid = grid, bandwidth = 10000) at test-kernel_density.R:19:1
2. │ └─base::suppressMessages(...)
3. │ └─base::withCallingHandlers(...)
4. └─base::loadNamespace(x)
5. ├─base::namespaceImportFrom(...)
6. │ └─base::asNamespace(ns)
7. └─base::loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
8. ├─base::namespaceImport(...)
9. └─base::loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])
10. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
11. └─base (local) withOneRestart(expr, restarts[[1L]])
12. └─base (local) doWithOneRestart(return(expr), restart)
[ FAIL 5 | WARN 0 | SKIP 1 | PASS 168 ]
Error: Test failures
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [5s/5s] ERROR
Error(s) in re-building vignettes:
--- re-building ‘introduction.Rmd’ using rmarkdown
Quitting from lines 100-103 [unnamed-chunk-6] (introduction.Rmd)
Error: processing vignette 'introduction.Rmd' failed with diagnostics:
there is no package called 'terra'
--- failed re-building ‘introduction.Rmd’
SUMMARY: processing the following file failed:
‘introduction.Rmd’
Error: Vignette re-building failed.
Execution halted
- checking PDF version of manual ... [3s/3s] OK
- DONE
Status: 2 ERRORs
- using check arguments '--no-clean-on-error '