-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should r.rmarkdownRender
command learn how to respect keep_html
?
#3736
Comments
I may be missing something, but can you explain a bit more in detail about the As a side note, we changed behavior in the Quarto extension in quarto-dev/quarto#435 so that when you preview a file in an R package, the HTML does get written to a temp directory. Can you give me a little more detail on whether you are in an R package or not? |
When you run
Neither of these things happen in Positron. My desired experience would be to be able to knit and only the output file is created without a preview html file. |
output
front matterr.rmarkdownRender
command
r.rmarkdownRender
commandr.rmarkdownRender
command set html_preview = FALSE
?
OK gotcha, I have updated the title to be more clear what the feature request is here. Right now the rmarkdown::render(output_options = list(html_preview = FALSE)) We could set that in the command itself, or look for a way to have it as an arg. FWIW, this behavior is exactly as defined for It's arguable that we are doing the right thing here. As a workaround, you can do: output:
github_document:
html_preview: FALSE |
r.rmarkdownRender
command set html_preview = FALSE
?r.rmarkdownRender
command learn how to respect keep_html
?
Positron Version:
Positron Version: 2024.06.1 (Universal) build 27
Code - OSS Version: 1.90.0
Commit: a893e5b
Date: 2024-06-26T02:08:06.673Z
Electron: 29.4.0
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Darwin arm64 23.4.0
^ as an aside, consider creating a command prompt to do this for you. Zed does this which makes reporting issues much easier. This is cumbersome and makes me less likely to submit bug reports
Steps to reproduce the issue:
Render document with R Markdown
Note that the documentation says:
This does not happen in positron
Source: https://rmarkdown.rstudio.com/github_document_format.html
What did you expect to happen?
Preview file to not be created in my working directory. I do not want to have to modify the yaml front matter to avoid this.
Were there any error messages in the output or Developer Tools console?
The text was updated successfully, but these errors were encountered: