Skip to content

Commit

Permalink
rename to tar_terra_sprc - since I think sprc is different to rast an…
Browse files Browse the repository at this point in the history
…d we should make that clear
  • Loading branch information
njtierney committed Apr 19, 2024
1 parent 9ce6c13 commit daa40fe
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
export(geotargets_option_get)
export(geotargets_option_set)
export(tar_terra_rast)
export(tar_terra_rasts)
export(tar_terra_sprc)
export(tar_terra_vect)
importFrom(rlang,"%||%")
importFrom(rlang,arg_match0)
Expand Down
4 changes: 2 additions & 2 deletions R/tar-terra-rasts.R → R/tar-terra-sprc.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#' )
#' }
#' list(
#' tar_terra_rasts(
#' tar_terra_sprc(
#' raster_elevs,
#' # two rasters, one unaltered, one scaled by factor of 2 and
#' # reprojected to interrupted good homolosine
Expand All @@ -41,7 +41,7 @@
#' x <- targets::tar_read(raster_elevs)
#' })
#' }
tar_terra_rasts <- function(name,
tar_terra_sprc <- function(name,
command,
pattern = NULL,
filetype = NULL,
Expand Down
10 changes: 5 additions & 5 deletions man/tar_terra_rasts.Rd → man/tar_terra_sprc.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions tests/testthat/test-tar-terra-rasts.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
targets::tar_test("tar_terra_rasts() works", {
targets::tar_test("tar_terra_sprc() works", {
geotargets::geotargets_option_set(
"raster_gdal_creation_options",
c("COMPRESS=DEFLATE", "TFW=YES")
Expand All @@ -17,7 +17,7 @@ targets::tar_test("tar_terra_rasts() works", {
)
}
list(
geotargets::tar_terra_rasts(
geotargets::tar_terra_sprc(
raster_elevs,
# two rasters, one unaltered, one scaled by factor of 2 and
# reprojected to interrupted good homolosine
Expand Down

0 comments on commit daa40fe

Please sign in to comment.