Closed jonocarroll closed 4 months ago
On further inspection, rolling back to cli 3.6.2 did not resolve the issue, but I'm struggling to find where it came from.
This is possibly coming from something in your setup. Is it in a terminal or some editor or IDE? Check if you set some options or environment variables in your startup files.
I'm building the site within RStudio, and don't think I've changed any options. I have very few set, all namespaced.
What's particularly odd is that I still get the control codes in the rendered output with
```{r sessionInfo, echo = FALSE}
withr::with_options(list(cli.num.colors=1), devtools::session_info())
```
despite this showing entirely unstyled output at the console. Same for cli.ansi=FALSE
and NO_COLOR=1
...
I may just be going insane.
The option is called cli.num_colors
with an underscore. NO_COLOR
is an environment variable, not an option.
Facepalm on my part for those, but unfortunately even using them properly (via {withr}) didn't help. A test .Rmd seems to do the same if I knit with the button in RStudio, but not if I render()
in RStudio or positron.
I have been using the RStudio daily builds, and believe it or not, updating RStudio to the latest daily fixed the issue. I have no idea what was actually wrong (an overriding env var somewhere?).
Apologies for the noise.
I recently noticed that the RSS feed for my (blogdown) blog was broken producing an error
This comes from a
devtools::session_info()
block I include at the end of all my posts, which ended up being handy in identifying which package had changed between the last successfully rendered post and now.In cli version 3.6.2 and prior I get
whereas with 3.6.3 I get
Do I need to wrap this somehow, or is this an issue with cli?
Removing the
<tt>
tag around this output does not resolve the issue.