Skip to content

Commit 2e24200

Browse files
committed
Try to fix Rd for CRAN
1 parent b2f4749 commit 2e24200

15 files changed

+34
-30
lines changed

NEWS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# targets 1.3.2
2+
3+
* Try to fix function help files for CRAN.
4+
15
# targets 1.3.1
26

37
* Add `tar_config_projects()` and `tar_config_yaml()` (#1153, @psychelzh).

R/class_database.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ database_init <- function(
4444
tar_throw_validate(
4545
"unsupported repository \"",
4646
repository,
47-
"\" for {targets} database class."
47+
"\" for `targets` database class."
4848
)
4949
)
5050
}

R/class_database_aws.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ database_aws_class <- R6::R6Class(
3535
self$resources$aws,
3636
"tar_resources_aws",
3737
msg = paste(
38-
"Resources must be supplied to the {targets} AWS ",
38+
"Resources must be supplied to the `targets` AWS ",
3939
"database class. Set resources with tar_option_set()"
4040
)
4141
)

R/class_database_gcp.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ database_gcp_class <- R6::R6Class(
3535
self$resources$gcp,
3636
"tar_resources_gcp",
3737
msg = paste(
38-
"GCP resources must be supplied to the {targets} GCP ",
38+
"GCP resources must be supplied to the `targets` GCP ",
3939
"database class. Set resources with tar_option_set()"
4040
)
4141
)

R/class_options.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ options_class <- R6::R6Class(
406406
if (is.numeric(backoff)) {
407407
tar_warn_deprecate(
408408
"The use of a numeric for the backoff argument of ",
409-
"tar_option_set() is deprecated as of {targets} 1.1.0 ",
409+
"tar_option_set() is deprecated as of `targets` 1.1.0 ",
410410
"(2023-05-09). Supply the output of tar_backoff() instead."
411411
)
412412
tar_assert_ge(backoff, 0.001)

R/tar_debug_instructions.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,6 @@ tar_debug_instructions <- function() {
5959
)
6060
}
6161
cli_blank(
62-
"Then debug the function as you would normally (without {targets})."
62+
"Then debug the function as you would normally (without `targets`)."
6363
)
6464
}

R/tar_engine_knitr.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
#' @export
33
#' @family Target Markdown
44
#' @seealso <https://books.ropensci.org/targets/literate-programming.html>
5-
#' @description `knitr` language engine that runs `{targets}`
5+
#' @description `knitr` language engine that runs ``targets``
66
#' code chunks in Target Markdown.
77
#' @return Character, output generated from `knitr::engine_output()`.
88
#' @param options A named list of `knitr` chunk options.
99
#' @section Target Markdown interactive mode:
1010
#' Target Markdown has two modes:
1111
#' 1. Non-interactive mode. This is the default when you
1212
#' run `knitr::knit()` or `rmarkdown::render()`.
13-
#' Here, the code in `{targets}` code chunks gets written
13+
#' Here, the code in ``targets`` code chunks gets written
1414
#' to special script files in order to set up a `targets`
1515
#' pipeline to run later.
1616
#' 2. Interactive mode: here, no scripts are written to set up
@@ -80,7 +80,7 @@
8080
#' if (requireNamespace("knitr", quietly = TRUE)) {
8181
#' knitr::knit_engines$set(targets = targets::tar_engine_knitr)
8282
#' }
83-
#' # Then, {targets} code chunks in a knitr report will run
83+
#' # Then, `targets` code chunks in a knitr report will run
8484
#' # as described at
8585
#' # <https://books.ropensci.org/targets/literate-programming.html>.
8686
#' }
@@ -376,7 +376,7 @@ warn_labels_unnamed <- function(options) {
376376
suppressed <- identical(Sys.getenv("TAR_WARN"), "false")
377377
if (!suppressed && any(grepl("unnamed-chunk-[0-9]*$", options$tar_name))) {
378378
tar_warn_validate(
379-
"Please assign explicit labels to {targets} code chunks ",
379+
"Please assign explicit labels to `targets` code chunks ",
380380
"in order to avoid accidental duplicated script files. ",
381381
"Warnings like this one are important, ",
382382
"but you can suppress them with Sys.setenv(TAR_WARN = \"false\")."

R/tar_resources_aws.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
#' @param prefix Character of length 1, "directory path"
1818
#' in the bucket where your target object and metadata will go.
1919
#' Please supply an explicit prefix
20-
#' unique to your {targets} project.
21-
#' In the future, {targets} will begin requiring
20+
#' unique to your `targets` project.
21+
#' In the future, `targets` will begin requiring
2222
#' explicitly user-supplied prefixes. (This last note
23-
#' was added on 2023-08-24: {targets} version 1.2.2.9000.)
23+
#' was added on 2023-08-24: `targets` version 1.2.2.9000.)
2424
#' @param region Character of length 1, AWS region containing the S3 bucket.
2525
#' Set to `NULL` to use the default region.
2626
#' @param part_size Positive numeric of length 1, number of bytes

R/use_targets_rmd.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#' @export
33
#' @family help
44
#' @description Create an example Target Markdown report
5-
#' to get started with {targets}.
5+
#' to get started with `targets`.
66
#' @return `NULL` (invisibly).
77
#' @param path Character of length 1, output path of the
88
#' Target Markdown report relative to the current active

R/utils_assert.R

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -639,13 +639,13 @@ tar_assert_script <- function(script) {
639639
tar_assert_not_in(vars, choices, msg)
640640
msg <- paste(
641641
"Do not use %s() from {devtools} or {pkgload} to load",
642-
"packages or custom functions/globals for {targets}. If you do,",
643-
"custom functions will go to a package environment where {targets}",
642+
"packages or custom functions/globals for `targets`. If you do,",
643+
"custom functions will go to a package environment where `targets`",
644644
"may not track them, and the loaded data will not be available in",
645645
"parallel workers created by tar_make_clustermq() or tar_make_future().",
646646
"Read https://books.ropensci.org/targets/packages.html#loading-and-configuring-r-packages", # nolint
647647
"and https://books.ropensci.org/targets/packages.html#package-based-invalidation", # nolint
648-
"for the correct way to load packages for {targets} pipelines.",
648+
"for the correct way to load packages for `targets` pipelines.",
649649
"Warnings like this one are important, but if you must suppress them, ",
650650
"you can do so with Sys.setenv(TAR_WARN = \"false\")."
651651
)
@@ -779,10 +779,10 @@ tar_deprecate_seconds_interval <- function(seconds_interval) {
779779
tar_warn_prefix <- function() {
780780
tar_warn_deprecate(
781781
"Please supply an explicit prefix for you target object data ",
782-
"and metadata. The prefix should be unique to your {targets} project. ",
783-
"In the future, {targets} will begin requiring explicitly ",
782+
"and metadata. The prefix should be unique to your `targets` project. ",
783+
"In the future, `targets` will begin requiring explicitly ",
784784
"user-supplied prefixes. This warning was added on 2023-08-24 ",
785-
"({targets} version 1.2.2.9000)."
785+
"(`targets` version 1.2.2.9000)."
786786
)
787787
}
788788

0 commit comments

Comments
 (0)