Skip to content

Commit

Permalink
move terra, wither, and zip to Imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Aariq committed Oct 29, 2024
1 parent 977d6f7 commit 3c01a8b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 10 deletions.
10 changes: 5 additions & 5 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,16 @@ RoxygenNote: 7.3.2
Imports:
targets (>= 1.8.0),
rlang (>= 1.1.3),
cli (>= 3.6.2)
cli (>= 3.6.2),
terra (>= 1.7.71),
withr (>= 3.0.0),
zip
Suggests:
crew (>= 0.9.2),
ncmeta,
sf,
stars,
terra (>= 1.7.71),
testthat (>= 3.0.0),
withr (>= 3.0.0),
zip
testthat (>= 3.0.0)
Config/testthat/edition: 3
URL: https://github.com/njtierney/geotargets, https://njtierney.github.io/geotargets/
BugReports: https://github.com/njtierney/geotargets/issues
1 change: 0 additions & 1 deletion R/tar-terra-rast.R
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ tar_terra_rast <- function(name,
retrieval = targets::tar_option_get("retrieval"),
cue = targets::tar_option_get("cue"),
description = targets::tar_option_get("description")) {
check_pkg_installed("terra")

filetype <- filetype %||% "GTiff"

Expand Down
2 changes: 0 additions & 2 deletions R/tar-terra-sprc.R
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ tar_terra_sprc <- function(name,
retrieval = targets::tar_option_get("retrieval"),
cue = targets::tar_option_get("cue"),
description = targets::tar_option_get("description")) {
check_pkg_installed("terra")
#ensure that user-passed `resources` doesn't include `custom_format`
if ("custom_format" %in% names(resources)) {
cli::cli_abort("{.val custom_format} cannot be supplied to targets created with {.fn tar_terra_sprc}")
Expand Down Expand Up @@ -184,7 +183,6 @@ tar_terra_sds <- function(name,
retrieval = targets::tar_option_get("retrieval"),
cue = targets::tar_option_get("cue"),
description = targets::tar_option_get("description")) {
check_pkg_installed("terra")
#ensure that user-passed `resources` doesn't include `custom_format`
if ("custom_format" %in% names(resources)) {
cli::cli_abort("{.val custom_format} cannot be supplied to targets created with {.fn tar_terra_sprc}")
Expand Down
2 changes: 0 additions & 2 deletions R/tar-terra-vect.R
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ tar_terra_vect <- function(name,
retrieval = targets::tar_option_get("retrieval"),
cue = targets::tar_option_get("cue"),
description = targets::tar_option_get("description")) {
check_pkg_installed("terra")

filetype <- filetype %||% "GeoJSON"
gdal <- gdal %||% "ENCODING=UTF-8"

Expand Down

0 comments on commit 3c01a8b

Please sign in to comment.