Skip to content

Commit 82b8421

Browse files
committed
Escape | in nice_names()
1 parent 2223396 commit 82b8421

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/nice-names.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#' @export
1313

1414
nice_names <- function(x, unique=TRUE) {
15-
x <- gsub('|>', '.result.', x)
15+
x <- gsub('\\|>', '.result.', x)
1616
x <- gsub('%>%', '.result.', x)
1717
x <- gsub('\\(Intercept\\)','Intercept', x)
1818
x <- gsub('resample\\(([^\\)]*)\\)','\\1', x)

0 commit comments

Comments
 (0)