Internal error with ansi_strwrap
when string contains \r\n\r
in cli_abort()
message
#667
Labels
bug
an unexpected problem or unintended behavior
tidy-dev-day 🤓
Tidyverse Developer Day rstd.io/tidy-dev-day
Running in RStudio R console this leads to an internal error
The message string is part of the content created by knitr progress bar which uses
txtProgressBar
.I encountered this in the context of quarto R package, where
quarto render
is run withprocessx::run()
and I wanted to usecli_abort()
in the error catchhttps://github.com/quarto-dev/quarto-r/blob/8a0bcb3a7cf35ce4eb2b412d6d09542cc7b2b35d/R/quarto.R#L41-L48
The full
stderr
I get in the code above is the following, which leads to same errorThe text was updated successfully, but these errors were encountered: