Skip to content

Commit 11c2204

Browse files
committed
Describe intended use case of cloud files
1 parent 1159404 commit 11c2204

File tree

4 files changed

+45
-3
lines changed

4 files changed

+45
-3
lines changed

R/tar_target.R

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@
7171
#' to arrive over a network file system.)
7272
#' If the target does not create any files, the return value should be
7373
#' `character(0)`.
74+
#'
75+
#' If `repository` is not `"local"` and `format` is `"file"`
76+
#' then the target should create a single output file.
77+
#' That output file is uploaded to the cloud and tracked for changes
78+
#' where it exists in the cloud. The local file is deleted after
79+
#' the target runs.
7480
#' * `"url"`: A dynamic input URL. For this storage format,
7581
#' `repository` is implicitly `"local"`,
7682
#' URL format is like `format = "file"`
@@ -108,6 +114,12 @@
108114
#' See the cloud storage section of
109115
#' <https://books.ropensci.org/targets/data.html>
110116
#' for details for instructions.
117+
#'
118+
#' Note: if `repository` is not `"local"` and `format` is `"file"`
119+
#' then the target should create a single output file.
120+
#' That output file is uploaded to the cloud and tracked for changes
121+
#' where it exists in the cloud. The local file is deleted after
122+
#' the target runs.
111123
#' @param iteration Character of length 1, name of the iteration mode
112124
#' of the target. Choices:
113125
#' * `"vector"`: branching happens with `vctrs::vec_slice()` and

man/tar_option_set.Rd

Lines changed: 13 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/tar_target.Rd

Lines changed: 13 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/tar_target_raw.Rd

Lines changed: 7 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)