REditorSupport / vscode-R

R Extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=REditorSupport.r
MIT License
1.07k stars 128 forks source link

Support sending code chunks in R script delimited by `#%%` #517

Closed apoorvalal closed 3 years ago

apoorvalal commented 3 years ago

Describe the solution you'd like I'm really liking the package so far; thanks for the great work on it. I'm trying to migrate from the Hydrogen package for Atom because of the application instability of Atom, and miss the ability to create and run code cells delimited by #%%, which helps a lot in interactive development. It also doesn't alter command line runs using Rscript at all.

Additional context Sendcode on sublime implemented it recently as well - see https://github.com/randy3k/SendCode#block-expansion

renkun-ken commented 3 years ago

Duplicate of #191.

With rmarkdown chunk support implemented, I think this code chunk in R script should be straightforward.