Skip to content

Commit

Permalink
missing loading of geodata; rm curl
Browse files Browse the repository at this point in the history
  • Loading branch information
eliotmcintire committed May 31, 2024
1 parent 696e6b8 commit 4e2dac3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
3 changes: 1 addition & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ URL:
https://spades-project.predictiveecology.org/,
https://github.com/PredictiveEcology/SpaDES.project
Date: 2024-05-31
Version: 0.0.8.9057
Version: 0.0.8.9058
Authors@R: c(
person("Eliot J B", "McIntire", email = "[email protected]",
role = c("aut", "cre"), comment = c(ORCID = "0000-0002-6914-8316")),
Expand All @@ -31,7 +31,6 @@ Imports:
Suggests:
covr,
crayon,
curl,
digest,
ellipsis,
filelock,
Expand Down
2 changes: 1 addition & 1 deletion R/setupProject.R
Original file line number Diff line number Diff line change
Expand Up @@ -2291,7 +2291,7 @@ setupStudyArea <- function(studyArea, paths, envir, verbose = getOption("Require
if (requireNamespace("reproducible", quietly = TRUE))
# Cache doesn't evaluate the `theCall` inside eval, so need .cacheExtra to identify the actual contents
studyArea <- reproducible::Cache(eval(theCall), .cacheExtra = list(studyArea, getStudyArea),
omitArgs = c("enclos", "envir"),
omitArgs = c("enclos", "envir"), verbose = verbose,
cachePath = paths$cachePath, .functionName = "getStudyArea")
else
studyArea <- eval(theCall)
Expand Down
10 changes: 7 additions & 3 deletions tests/testthat/helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ setupTest <- function(pkgs, envir = parent.frame(), name = .rndstr(1), first = F

warns <- capture_warnings({
# withr::local_package("googledrive", .local_envir = envir)
withr::local_package("curl", .local_envir = envir)
# withr::local_package("curl", .local_envir = envir)
withr::local_package("crayon", .local_envir = envir)
withr::local_package("httr", .local_envir = envir)
withr::local_package("waldo", .local_envir = envir)
Expand All @@ -31,8 +31,12 @@ setupTest <- function(pkgs, envir = parent.frame(), name = .rndstr(1), first = F
# }
# }

# if (!missing(pkgs))
# lapply(pkgs, withr::local_package, .local_envir = envir)
if (!missing(pkgs)) {
lapply(pkgs, function(pk) {
skip_if_not_installed(pk)
withr::local_package(pk, .local_envir = envir)
})
}

# withr::local_libpaths(Require::tempdir2(.rndstr(1)), .local_envir = envir)

Expand Down

0 comments on commit 4e2dac3

Please sign in to comment.