njtierney / geotargets

Targets extensions for geospatial data
https://njtierney.github.io/geotargets/
Other
49 stars 4 forks source link

consider how `tar_terra_sprc` might work in dynamic and static branching #53

Open njtierney opened 2 months ago

njtierney commented 2 months ago

RE @Aariq 's comment in #50

... what I really wish for is a way to use sprc() and terra::c() with dynamic and static branching. E.g., would the test pipeline in this PR perhaps be better done with tar_map() and a geotargets version of tarchetypes::tar_combine() like tar_combine_sprc()? Or would it be possible to create our own options for an iterate argument so one could use dynamic branching with iterate = "sprc" or iterate = "SpatRaster_layers"? I think we might have to dig more into the targets code or ask Will to answer those questions.

Aariq commented 2 months ago

Confirmed with Will that custom iterate arguments are not a possibility, but some equivalent of tarchetypes::tar_combine() might be warranted for static branching