-
Notifications
You must be signed in to change notification settings - Fork 121
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
Enhance R markdown support #429
Conversation
I'm wondering if we already have a shortcut/command/snippet to insert an R code chunk like the following?
I tried adding a snippet to |
I like the background highlighting, looks great. Would you consider an option to disable the text links? I like a really minimal editor layout, with things driven by keybindings. I usually program in 'zen mode'. Of course this is my selfish personal preference. I know many users would appreciate the links. |
By text links, do you mean the "Run Chunk" and "Run Above" CodeLens commands? You could disable CodeLens globally with the following settings: "editor.codeLens": false or just disable it for Rmd: "[rmd]": {
"editor.codeLens": false
} |
Currently, we are using r markdown snippets by using markdown snippets and our snippets file is not working. |
@Ikuyadeu Thanks! I've switched to our own snippets for rmd and it is much easier to insert an R chunk now. |
@renkun-ken People (including me) have wanted these features for ages - thank you very much for this PR! |
What problem did you solve?
Close #428, #49, #261
eval=FALSE
)(If you have)Screenshot
How to test:
r chunk
snippet)eval=FALSE
then Run Above will not include such chunks.R: Run Current Chunk
and the chunk is sent to terminal.8R: Run Current Chunk
and nothing happens.Ctrl+shift+enter
should triggerR: Run Current Chunk
by default (same as RStudio).{label}=
to the editor.