Skip to content

Commit

Permalink
oops, comment out test code
Browse files Browse the repository at this point in the history
  • Loading branch information
Aariq committed May 23, 2024
1 parent 83acc50 commit 2244410
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions R/tar_terra_tiles.R
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ tar_terra_tiles_raw <- function(
# gdal = gdal
# ))

#this is what the output should be:
command <- expression(c("my_tiles/myrast_tile1", "my_tiles/myrast_tile2", "my_tiles/myrast_tile3", "my_tiles/myrast_tile4"))

upstream <- targets::tar_target_raw(
Expand Down Expand Up @@ -206,10 +207,10 @@ make_tiles <- function(raster, template, tiles_dir, filename, filetype, gdal) {
)
}
## This works! Why doesn't the upstream target work?
raster <- terra::rast(system.file("ex/elev.tif", package="terra"))
template <- terra::rast(ncols = 2, nrows = 2)
tiles_dir<- "my_tiles"
filename <- "myrast_tile"
filetype <- "GTiff"
gdal <- ""
make_tiles(raster, template, tiles_dir, filename, filetype, gdal)
# raster <- terra::rast(system.file("ex/elev.tif", package="terra"))
# template <- terra::rast(ncols = 2, nrows = 2)
# tiles_dir<- "my_tiles"
# filename <- "myrast_tile"
# filetype <- "GTiff"
# gdal <- ""
# make_tiles(raster, template, tiles_dir, filename, filetype, gdal)

0 comments on commit 2244410

Please sign in to comment.