upload_targets_archive <- function(...) {
zip("_targets.zip", "_targets")
piggyback::pb_upload("_targets.zip")
fs::file_delete("_targets.zip")
}
get_targets_archive <- function(dir = ".", ...) {
piggyback::pb_download("_targets.zip")
unzip("_targets.zip", exdir = dir)
fs::file_delete("_targets.zip")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.