njtierney / geotargets

Targets extensions for geospatial data
http://geotargets.njtierney.com/
Other
61 stars 4 forks source link

'getting started' vignette #55

Closed njtierney closed 1 week ago

njtierney commented 7 months ago

Still need to fill this in with more content from issues.

For example

This will resolve #17

Aariq commented 7 months ago

Is eval=FALSE just so CRAN doesn't complain? It might be better to precompute the vignette instead.

njtierney commented 7 months ago

Good idea with precomputing!

Aariq commented 2 weeks ago

Because of the trick to set root.dir to a temporary directory, you don't need tar_dir() at all I think. All examples have three chunks: one with echo: false to write the _targets.R file with tar_script(), one with eval: false to show the contents of _targets.R, and one with echo and eval true to run the pipeline and inspect results.

I didn't include much about the raster and vector GDAL options, because I don't have a good motivating example, but I did include examples of changing the driver and added an example with preserve_metadata = "zip".

Aariq commented 1 week ago

@njtierney, I think this is pretty much done. Can you take a look when you get a chance?

njtierney commented 1 week ago

Thanks so much for this, @Aariq !

I think it's great. I think that down the track we could provide some more information about using things like pattern = map(), but that might be best put in another future vignette, or perhaps link to a repository that contains a worked example.

Happy to merge!

Aariq commented 1 week ago

Yeah, the plan was to show some dynamic branching examples in a separate vignette focused on tar_terra_tile() (#111), but I'm stuck on that because I really wanted tile_blocksize() to work (#99)!