Skip to content

Commit 1a73d35

Browse files
committed
Add apply_names_sep() helper that uses glue
Part of #1185
1 parent 837da34 commit 1a73d35

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

R/utils.R

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@ tidyr_new_list <- function(x) {
130130
x
131131
}
132132

133+
apply_names_sep <- function(outer, inner, names_sep) {
134+
as.character(glue("{outer}{names_sep}{inner}"))
135+
}
136+
133137
check_present <- function(x) {
134138
arg <- ensym(x)
135139
if (missing(x)) {

0 commit comments

Comments
 (0)