Skip to content

Commit 669ce7e

Browse files
committed
fix examples
1 parent 6081f7e commit 669ce7e

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

Diff for: R/tar_destroy.R

+4-1
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,11 @@
5656
#' Dynamic files are not deleted this way.
5757
#' * `"scratch"`: temporary files in saved during [tar_make()] that should
5858
#' automatically get deleted except if R crashed.
59-
#' * `"workspaces"`: compressed lightweight files in `workspaces/`
59+
#' * `"workspaces"`: compressed lightweight files locally saved
60+
#' to the `workspaces/` folder
6061
#' in the data store with the saved workspaces of targets.
62+
#' Does not delete workspace files on the cloud. For that,
63+
#' consider `destroy = "all"` or `destroy = "cloud"`.
6164
#' See [tar_workspace()] for details.
6265
#' * `"user"`: custom user-supplied files in the `user/` folder in the
6366
#' data store.

Diff for: R/tar_workspace_download.R

+1-3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
#' library(targets)
2828
#' library(tarchetypes)
2929
#' tar_option_set(
30-
#' tar_option_set(
3130
#' resources = tar_resources(
3231
#' tar_resources_aws(
3332
#' bucket = "YOUR_AWS_BUCKET",
@@ -37,9 +36,8 @@
3736
#' repository = "aws",
3837
#' repository_meta = "aws"
3938
#' )
40-
#' f <- function() stop("this is an error and thus triggers a workspace")
4139
#' list(
42-
#' tar_target(x, f())
40+
#' tar_target(x, stop("this is an error and thus triggers a workspace"))
4341
#' )
4442
#' }, ask = FALSE)
4543
#' # The following code throws an error for demonstration purposes.

Diff for: man/tar_destroy.Rd

+4-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: man/tar_workspace_download.Rd

+1-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)