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
RStudio Edition : Desktop
RStudio Version : 2024.04.0 Build 735
OS Version : Windows 11 (x86_64-w64-mingw32)
R Version : 4.3.3 (2024-02-29 ucrt)
Steps to reproduce the problem
Just create a notebook with some section headers
Add a code chunk with a r"" function to convert a path
---
title: "R Notebook"
output: html_notebook
---
This is an [R Markdown](http://rmarkdown.rstudio.com) Notebook. When you execute code within the notebook, the results appear beneath the code.
Try executing this chunk by clicking the *Run* button within the chunk or by placing your cursor inside it and pressing *Ctrl+Shift+Enter*.
```{r}
plot(cars)
```
Add a new chunk by clicking the *Insert Chunk* button on the toolbar or by pressing *Ctrl+Alt+I*.
When you save the notebook, an HTML file containing the code and output will be saved alongside it (click the *Preview* button or press *Ctrl+Shift+K* to preview the HTML file).
The preview shows you a rendered HTML copy of the contents of the editor. Consequently, unlike *Knit*, *Preview* does not run any R code chunks. Instead, the output of the chunk when it was last run in the editor is displayed.
# First level section
## Second Level Section
It can fold/collapse
```{r}
a_path <- r"(../path/to/file)"
```
## Second level section
Does not fold/collapse
```{r another_random_chunk}
x <- "a string"
```
Describe the problem in detail
The sections below the chunk containing the r"" call will not be collapsible anymore.
@fcideco Thank you for raising the issue! I'm unable to reproduce it, though. What version of RStudio Desktop are you using? You can get it with Help -> About RStudio or with RStudio.Version()$long in the Console Pane.
@fcideco Thank you! I can also reproduce this, in RStudio Desktop 2024.07.0-daily+131 on Windows 11. Even something simple and incomplete like r"( will cause the problem.
I'm not sure if this is related, but I also note that the lower-most fold icon for the closing chunk is now incorrect; it should be pointing up to indicate that it will collapse the chunk.
System details
Steps to reproduce the problem
Just create a notebook with some section headers
Add a code chunk with a
r""
function to convert a pathDescribe the problem in detail
The sections below the chunk containing the
r""
call will not be collapsible anymore.Describe the behavior you expected
All headers should be collapsible in source view
The text was updated successfully, but these errors were encountered: