# NOT RUN {
tar_name()
tar_name(default = "custom_target_name")
if (identical(Sys.getenv("TAR_LONG_EXAMPLES"), "true")) {
tar_dir({ # tar_dir() runs code from a temporary directory.
tar_script(tar_target(x, tar_name()), ask = FALSE)
tar_make()
tar_read(x)
})
}
# }
Run the code above in your browser using DataLab