The targets pipeline rebuilds the compilation but does not write the
exported .rds: that write is around a third of a one-dataset rebuild, and
it is a publishing step rather than part of checking a dataset. This writes
it, reading the compilation targets::tar_make() has already built, then
runs the repository's post_export() from R/post_export.R, if it has one,
into the same directory (see build_post_export()).
build_export(
database_name = "database",
path = file.path("export", "data", "curr")
)Name of the database, matching the one given to
build_setup_pipeline(). A pipeline set up with a database_name other
than the default must be exported with that same name.
Directory to write into
The path of the .rds written, invisibly
if (FALSE) { # \dontrun{
build_setup_pipeline(method = "targets", database_name = "austraits")
targets::tar_make()
build_export("austraits")
} # }