.qmd converting to .R style on save... #7063
Unanswered
cjsrussell
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Hi @cjsrussell! Could you please share a bit more info about your setup?
A tip! To include tex enclosed in triple backticks "```", you can use quadruple backticks "````":
Here's a test .qmd file I am using -- so far I haven't been able to reproduce the issue in Positron 2025.04.0 build 204 on Mac. ---
title: "Untitled"
format: html
---
here is my quarto doc
```{r}
# columns
telcols <- colnames(survey_coded %>%
dplyr::select(dplyr::starts_with("tel_")))
# code
# normal
survey_coded <- funCode(
survey_coded,
telcols,
"agreement",
FALSE
)
```
# another code chunk
```{r}
# iris
iris
# another comment
# hello
x <- mtcars
# bye
abc <- print('hi')
``` |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All,
I have a .qmd file and use code chunks extensively. I have noticed that sometimes when I save the file all the code chunks are essentially removed, and comment lines added for spacing, see below.
This was originally a code chunk and now just appears to be a standard R script? Same thing has happened to the entire document a few times.
Any help is appreciated!
Thanks.
Original: (shown as image because chunk formatting breaks this post)
After save:
Beta Was this translation helpful? Give feedback.
All reactions