Skip to content

Commit a915ccf

Browse files
committed
chore: Auto-update from GitHub Actions
Run: https://github.com/cynkra/dm/actions/runs/22251642559
1 parent af4fed4 commit a915ccf

2 files changed

Lines changed: 63 additions & 6 deletions

File tree

R/dplyr.R

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,14 @@ mutate.dm_keyed_tbl <- function(
113113
) {
114114
keys_info <- keyed_get_info(.data)
115115
tbl <- unclass_keyed_tbl(.data)
116-
out <- mutate(tbl, ..., .by = {{ .by }}, .keep = .keep, .before = {{ .before }}, .after = {{ .after }})
116+
out <- mutate(
117+
tbl,
118+
...,
119+
.by = {{ .by }},
120+
.keep = .keep,
121+
.before = {{ .before }},
122+
.after = {{ .after }}
123+
)
117124
new_keyed_tbl_from_keys_info(out, keys_info)
118125
}
119126

R/tidyr.R

Lines changed: 55 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,46 @@ unite.dm_keyed_tbl <- function(data, col, ..., sep = "_", remove = TRUE, na.rm =
5151
}
5252

5353
#' @export
54-
separate.dm <- function(data, col, into, sep = "[^[:alnum:]]+", remove = TRUE, convert = FALSE, extra = "warn", fill = "warn", ...) {
54+
separate.dm <- function(
55+
data,
56+
col,
57+
into,
58+
sep = "[^[:alnum:]]+",
59+
remove = TRUE,
60+
convert = FALSE,
61+
extra = "warn",
62+
fill = "warn",
63+
...
64+
) {
5565
check_zoomed(data)
5666
}
5767

5868
#' @rdname tidyr_table_manipulation
5969
#' @export
60-
separate.dm_zoomed <- function(data, col, into, sep = "[^[:alnum:]]+", remove = TRUE, convert = FALSE, extra = "warn", fill = "warn", ...) {
70+
separate.dm_zoomed <- function(
71+
data,
72+
col,
73+
into,
74+
sep = "[^[:alnum:]]+",
75+
remove = TRUE,
76+
convert = FALSE,
77+
extra = "warn",
78+
fill = "warn",
79+
...
80+
) {
6181
tbl <- tbl_zoomed(data)
6282
col <- tidyselect::vars_pull(names(tbl), !!enquo(col))
63-
separated_tbl <- separate(tbl, col = !!col, into = into, sep = sep, remove = remove, convert = convert, extra = extra, fill = fill, ...)
83+
separated_tbl <- separate(
84+
tbl,
85+
col = !!col,
86+
into = into,
87+
sep = sep,
88+
remove = remove,
89+
convert = convert,
90+
extra = extra,
91+
fill = fill,
92+
...
93+
)
6494
# all columns that are not removed count as "selected"; names of "selected" are identical to "selected"
6595
deselected <- if (remove) col else character()
6696
selected <- set_names(setdiff(names(col_tracker_zoomed(data)), deselected))
@@ -70,9 +100,29 @@ separate.dm_zoomed <- function(data, col, into, sep = "[^[:alnum:]]+", remove =
70100

71101
#' @rdname tidyr_table_manipulation
72102
#' @export
73-
separate.dm_keyed_tbl <- function(data, col, into, sep = "[^[:alnum:]]+", remove = TRUE, convert = FALSE, extra = "warn", fill = "warn", ...) {
103+
separate.dm_keyed_tbl <- function(
104+
data,
105+
col,
106+
into,
107+
sep = "[^[:alnum:]]+",
108+
remove = TRUE,
109+
convert = FALSE,
110+
extra = "warn",
111+
fill = "warn",
112+
...
113+
) {
74114
keys_info <- keyed_get_info(data)
75115
tbl <- unclass_keyed_tbl(data)
76-
out <- separate(tbl, col = {{ col }}, into = into, sep = sep, remove = remove, convert = convert, extra = extra, fill = fill, ...)
116+
out <- separate(
117+
tbl,
118+
col = {{ col }},
119+
into = into,
120+
sep = sep,
121+
remove = remove,
122+
convert = convert,
123+
extra = extra,
124+
fill = fill,
125+
...
126+
)
77127
new_keyed_tbl_from_keys_info(out, keys_info)
78128
}

0 commit comments

Comments
 (0)