You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CSS chunk in Quarto breaks execution of R code #14324
RStudio Edition : Desktop [Open Source]
RStudio Version : 2023.12.1.402
OS Version : Windows 10 x64 (build 19045)
R Version : R version 4.3.2 (2023-10-31 ucrt)
Steps to reproduce the problem
A) Use „Quarto“ code that contains CSS block:
```{r}``````{css}/* Some CSS comment */``````{r}1 + 2``````{r}```
B. Try running all code blocks by clicking the downwards-directed arrow in the last chunk (or "Run all" button).
C. Code breaks in the CSS block.
Once again:
click (1) expecting to get output of (2) but get failure in (3) with the following output in the console:
Describe the problem in detail
RStudio tries to read the CSS block, interprets the code there as non-CSS code, and breaks.
Describe the behavior you expected
Either skip running the CSS block or interpret CSS code as CSS code there without any errors.
CSS block does not have widgets so it should not be run anyway. I think, in some previous RStudio versions this was not an issue (but I did not check).
Activity
ronblum commentedon Feb 26, 2024
Thanks @GegznaV ! This on looks like a duplicate of #11995, so I'm closing this as a duplicate and re-raising the other issue for consideration.