Closed maelle closed 2 years ago
Via https://ropensci.r-universe.dev/ui#builds
We see https://github.com/r-universe/ropensci/runs/5180531412?check_suite_focus=true
Error: Running examples in 'NLMR-Ex.R' failed The error most likely occurred in: > ### Name: nlm_mosaicfield > ### Title: nlm_mosaicfield > ### Aliases: nlm_mosaicfield > > ### ** Examples > > > # simulate mosaic random field > mosaic_field <- nlm_mosaicfield(ncol = 100, + nrow = 200, + n = NA, + infinit = TRUE, + collect = FALSE) Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : there is no package called 'spatstat.sparse' Calls: nlm_mosaicfield ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart Execution halted ** running examples for arch 'x64' ... ERROR Error: Running examples in 'NLMR-Ex.R' failed The error most likely occurred in: > ### Name: nlm_mosaicfield > ### Title: nlm_mosaicfield > ### Aliases: nlm_mosaicfield > > ### ** Examples > > > # simulate mosaic random field > mosaic_field <- nlm_mosaicfield(ncol = 100, + nrow = 200, + n = NA, + infinit = TRUE, + collect = FALSE) Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : there is no package called 'spatstat.sparse' Calls: nlm_mosaicfield ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... ** running tests for arch 'i386' ... Running 'testthat.R' ERROR Running the tests in 'tests/testthat.R' failed. Last 13 lines of output: <packageNotFoundError/error/condition> Error in `loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])`: there is no package called 'spatstat.sparse' Backtrace: x 1. +-NLMR::nlm_mosaicgibbs(...) at test_mosaicgibbs.R:4:0 2. \-base::loadNamespace(x) 3. +-base::namespaceImport(...) 4. \-base::loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) 5. \-base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 6. \-base withOneRestart(expr, restarts[[1L]]) 7. \-base doWithOneRestart(return(expr), restart) [ FAIL 2 | WARN 3 | SKIP 0 | PASS 56 ] Error: Test failures Execution halted ** running tests for arch 'x64' ... Running 'testthat.R' ERROR Running the tests in 'tests/testthat.R' failed. Last 13 lines of output: <packageNotFoundError/error/condition> Error in `loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])`: there is no package called 'spatstat.sparse'
Should spatstat.sparse be added to Suggests? The example might need some logic see e.g. @examplesIf in https://roxygen2.r-lib.org/articles/rd.html
spatstat.sparse
@examplesIf
All green now.
Via https://ropensci.r-universe.dev/ui#builds
We see https://github.com/r-universe/ropensci/runs/5180531412?check_suite_focus=true
Should
spatstat.sparse
be added to Suggests? The example might need some logic see e.g.@examplesIf
in https://roxygen2.r-lib.org/articles/rd.html