Skip to content

Commit e66a6b3

Browse files
committed
don't use setNames
1 parent f27d376 commit e66a6b3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

R/quarto.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,11 @@ quarto_run <- function(
7272
# if there is an error message from quarto CLI, add it to the message
7373
if (e$stderr != "") {
7474
quarto_error_msg <- xfun::split_lines(e$stderr)
75+
names(quarto_error_msg) <- rep(" ", length(quarto_error_msg))
7576
msg <- c(
7677
msg,
7778
" " = paste0(rep("-", nchar(msg)), collapse = ""),
78-
setNames(quarto_error_msg, rep(" ", length(quarto_error_msg)))
79+
quarto_error_msg
7980
)
8081
}
8182

0 commit comments

Comments
 (0)