Skip to content

Commit ae929b9

Browse files
committed
desciptions for the rest of static branching factories
1 parent 6aaa647 commit ae929b9

13 files changed

+54
-2
lines changed

Diff for: NEWS.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
# tarchetypes 0.7.12.9000 (development)
2-
1+
# tarchetypes 0.7.12.9001 (development)
32

3+
* Expose the new `description` argument of `tar_target()` in `targets` 1.5.1.9001.
4+
* `tar_map()` and other static branching target factories now append values to the target descriptions. Use the `descriptions` argument of those functions to customize.
45

56
# tarchetypes 0.7.12
67

Diff for: R/tar_map2.R

+2
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ tar_map2 <- function(
4343
command2,
4444
values = NULL,
4545
names = NULL,
46+
descriptions = tidyselect::everything(),
4647
group = rep(1L, nrow(as.data.frame(!!.x))),
4748
combine = TRUE,
4849
suffix1 = "1",
@@ -72,6 +73,7 @@ tar_map2 <- function(
7273
command2 = substitute(command2),
7374
values = values,
7475
names = substitute(names),
76+
descriptions = substitute(descriptions),
7577
group = substitute(group),
7678
combine = combine,
7779
suffix1 = suffix1,

Diff for: R/tar_map2_count.R

+2
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ tar_map2_count <- function(
4848
command2,
4949
values = NULL,
5050
names = NULL,
51+
descriptions = tidyselect::everything(),
5152
batches = 1L,
5253
combine = TRUE,
5354
suffix1 = "1",
@@ -77,6 +78,7 @@ tar_map2_count <- function(
7778
command2 = substitute(command2),
7879
values = values,
7980
names = substitute(names),
81+
descriptions = substitute(descriptions),
8082
batches = batches,
8183
combine = combine,
8284
suffix1 = suffix1,

Diff for: R/tar_map2_count_raw.R

+2
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ tar_map2_count_raw <- function(
5858
command2,
5959
values = NULL,
6060
names = NULL,
61+
descriptions = quote(tidyselect::everything()),
6162
batches = 1L,
6263
combine = TRUE,
6364
suffix1 = "1",
@@ -94,6 +95,7 @@ tar_map2_count_raw <- function(
9495
command2 = command2,
9596
values = values,
9697
names = names,
98+
descriptions = descriptions,
9799
group = group,
98100
combine = combine,
99101
suffix1 = suffix1,

Diff for: R/tar_map2_raw.R

+5
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ tar_map2_raw <- function(
4242
command2,
4343
values = NULL,
4444
names = NULL,
45+
descriptions = quote(tidyselect::everything()),
4546
group = quote(rep(1L, nrow(as.data.frame(!!.x)))),
4647
combine = TRUE,
4748
columns1 = quote(tidyselect::everything()),
@@ -81,6 +82,9 @@ tar_map2_raw <- function(
8182
if (!is.null(names)) {
8283
targets::tar_assert_lang(names)
8384
}
85+
if (!is.null(descriptions)) {
86+
targets::tar_assert_lang(descriptions)
87+
}
8488
if (!is.null(columns1)) {
8589
targets::tar_assert_lang(columns1)
8690
}
@@ -160,6 +164,7 @@ tar_map2_raw <- function(
160164
target_downstream,
161165
values = values,
162166
names = names,
167+
descriptions = descriptions,
163168
unlist = FALSE
164169
)
165170
)

Diff for: R/tar_map2_size.R

+2
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ tar_map2_size <- function(
4848
command2,
4949
values = NULL,
5050
names = NULL,
51+
descriptions = tidyselect::everything(),
5152
size = Inf,
5253
combine = TRUE,
5354
suffix1 = "1",
@@ -77,6 +78,7 @@ tar_map2_size <- function(
7778
command2 = substitute(command2),
7879
values = values,
7980
names = substitute(names),
81+
descriptions = substitute(descriptions),
8082
size = size,
8183
combine = combine,
8284
suffix1 = suffix1,

Diff for: R/tar_map2_size_raw.R

+2
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ tar_map2_size_raw <- function(
5858
command2,
5959
values = NULL,
6060
names = NULL,
61+
descriptions = quote(tidyselect::everything()),
6162
size = Inf,
6263
combine = TRUE,
6364
suffix1 = "1",
@@ -94,6 +95,7 @@ tar_map2_size_raw <- function(
9495
command2 = command2,
9596
values = values,
9697
names = names,
98+
descriptions = descriptions,
9799
group = group,
98100
combine = combine,
99101
suffix1 = suffix1,

Diff for: man/tar_map2.Rd

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

Diff for: man/tar_map2_count.Rd

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

Diff for: man/tar_map2_count_raw.Rd

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

Diff for: man/tar_map2_raw.Rd

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

Diff for: man/tar_map2_size.Rd

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

Diff for: man/tar_map2_size_raw.Rd

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

0 commit comments

Comments
 (0)