Comments (10)
I am going to work on these:
- Run Current Chunk
- Run All
- Run All Chunks Above (not including chunk cursor is in)
- Run All Chunks Below (including chunk cursor is in)
from vscode-r.
Hmm. I'm curious if we can use some commands from the the markdown-preview
extension in Visual Studio Code and pull out the R portions sending them to the terminal.
https://code.visualstudio.com/docs/languages/markdown
That'd get us far ahead on the Markdown side.
This is tricky. So, I'm going to take care of open issues first and revisit this request to see how many bumps its gotten.
from vscode-r.
It would be good to have the following commands, which are available in RStudio:
Run Current Chunk
Run All
Run All Chunks Above
(not including chunk cursor is in)Run All Chunks Below
(including chunk cursor is in)
from vscode-r.
RStudio is probably the best example of Rmd support, but Sublime's R-Box might be the most useful example to look into. If I recall correctly, R-Box does it like this:
- If the cursor is at the beginning of the code chunk, right after the ```, then the send to integrated terminal shortcut sends the entire chunk.
- If the cursor is inside the chunk, then the shortcut for sending to the terminal works like it does inside any R script.
- I'm not sure what it does if the cursor is outside of all the chunks when the shortcut is used, but hopefully it does nothing.
from vscode-r.
@jacob-long Thank you for using this extension and interest.
Now, this extension does not support Rmd chunk.
How do you think, which is good example R studio or Sublime for Rmd support?
from vscode-r.
@jacob-long I just simple fix.
You can send rmd
source code by shortcut command.
But this command will work whole rmd
file if out of ```
More useful fix will later.
Thank you for the issue!
from vscode-r.
I concur with @andycraig. It would be nice to have run all chunks above/below. This is useful especially if you are trying to render document and debug some code chunk.
from vscode-r.
Microsoft is working on built-in notebooks for VSCode and I'm hoping some commands like Run All Chunks might be added as part of that. So, I'm going to wait to see what happens.
VSCode issue: microsoft/vscode#90382
VSCode draft PR: microsoft/vscode#90382
VSCode notebook experiment in separate repo: https://github.com/rebornix/notebook-test
from vscode-r.
from vscode-r.
Closed by #429. Thanks again @renkun-ken!
from vscode-r.
Related Issues (20)
- Suddenly httpgd plots stopped working HOT 10
- Rplot cannot be plotted HOT 3
- This is not a bug, but help HOT 3
- Useless `"patterns"` array
- Rename roxygen `@param` tags at same time as argument names
- Crew package does not work with vscode-R
- Code chunks not being split correctly HOT 2
- httpgd not showing plots and plot do not show up on show viewers HOT 8
- Feature Request: Implement Output Insertion as Comments for Evaluated R Code HOT 4
- Startup error with renv when project is out of sync. HOT 1
- Error identifying terminal HOT 1
- `aa = keras::layer_input()` breaks the global environment viewer
- Inconsistent display of NA values in view(...)
- Function autocompletion not working if packages are `source()`ed from a script or loaded from R terminal
- View() displays sets some numerical values to 0
- How do i clear the R interactive terminal in VSCODE ?? HOT 1
- Feature request: Support shell integration for recent command access HOT 1
- Session watcher not respecting reticulate delayed load, and other issues HOT 3
- When the help panel or data.frame panel are shown, the terminal panel can not be maximized.
- unmanagably many blue lines HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-r.