Skip to content

Commit

Permalink
fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
wlandau committed Feb 4, 2025
1 parent 6081f7e commit 669ce7e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
5 changes: 4 additions & 1 deletion R/tar_destroy.R
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,11 @@
#' Dynamic files are not deleted this way.
#' * `"scratch"`: temporary files in saved during [tar_make()] that should
#' automatically get deleted except if R crashed.
#' * `"workspaces"`: compressed lightweight files in `workspaces/`
#' * `"workspaces"`: compressed lightweight files locally saved
#' to the `workspaces/` folder
#' in the data store with the saved workspaces of targets.
#' Does not delete workspace files on the cloud. For that,
#' consider `destroy = "all"` or `destroy = "cloud"`.
#' See [tar_workspace()] for details.
#' * `"user"`: custom user-supplied files in the `user/` folder in the
#' data store.
Expand Down
4 changes: 1 addition & 3 deletions R/tar_workspace_download.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#' library(targets)
#' library(tarchetypes)
#' tar_option_set(
#' tar_option_set(
#' resources = tar_resources(
#' tar_resources_aws(
#' bucket = "YOUR_AWS_BUCKET",
Expand All @@ -37,9 +36,8 @@
#' repository = "aws",
#' repository_meta = "aws"
#' )
#' f <- function() stop("this is an error and thus triggers a workspace")
#' list(
#' tar_target(x, f())
#' tar_target(x, stop("this is an error and thus triggers a workspace"))
#' )
#' }, ask = FALSE)
#' # The following code throws an error for demonstration purposes.
Expand Down
5 changes: 4 additions & 1 deletion man/tar_destroy.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions man/tar_workspace_download.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 669ce7e

Please sign in to comment.