run.R

# https://github.com/wlandau/targets-minimal
library(targets) # ----

# functions -----
Sys.time()
tar_make() # executes pipeline, which caches outputs and metadata in a _targets/ directory that can be read from with tar_read() and tar_load()
Sys.time()

# targets in parallel ----
# run `tar_make()` or `tar_make_clustermq()` # (uncomment the function of your choice.)
# Forked processing ('multicore') is not supported
# when running R from RStudio because it is considered unstable.
# For more details, how to control forked processing or not,
# and how to silence this warning in future R sessions, see
# ?parallelly::supportsMulticore
# targets::tar_make_clustermq(workers = 2L)
JohnGavin/fdata documentation built on Jan. 29, 2021, 1:38 p.m.