njtierney / geotargets

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

User input `resources` not being passed from `tar_terra_*()` to `tar_target_raw()` #66

Closed Aariq closed 1 month ago

Aariq commented 1 month ago

I'm trying to follow the targets manual section about heterogeneous workers (https://books.ropensci.org/targets/crew.html#heterogeneous-workers) and can't get a tar_terra_rast() target to override the default crew controller set in tar_option_set(). It works with a normal tar_target() however. I suspect this is because the resources argument to tar_terra_rast() is not passed to targets::tar_target_raw(), rather it is overwritten with targets::tar_resources(custom_format = targets::tar_resources_custom_format(.... Need to find a way to append resources input by users.