Skip to content

CSS chunk in Quarto breaks execution of R code #14324

Closed

Description

@GegznaV

System details

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 image in the last chunk (or "Run all" button).

C. Code breaks in the CSS block.

Once again:
image
click (1) expecting to get output of (2) but get failure in (3) with the following output in the console:

image

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

  1. added
    new
    on Feb 25, 2024
  2. ronblum commented on Feb 26, 2024

    @ronblum
    Contributor

    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.

  3. added and removed
    new
    on Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions