Skip to content

Commit ce35122

Browse files
fix error
1 parent 6614d3a commit ce35122

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/parse.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,11 @@ get_parse_data <- function(text, include_text = TRUE, ...) {
101101
if (getRversion() < "4.2") {
102102
is_unicode_parsing_error <- grepl("^\"<U\\+[0-9]+>\"$", pd$text)
103103
if (any(is_unicode_parsing_error)) {
104-
rlang::abort(
104+
rlang::abort(paste0(
105105
"Can't parse input due to unicode restriction in base R. Please ",
106106
"upgrade R to >= 4.2 to style this input. ",
107107
"Context: https://github.com/r-lib/styler/issues/847"
108-
)
108+
))
109109
}
110110
}
111111
pd <- pd %>%

0 commit comments

Comments
 (0)