Giter Site home page Giter Site logo

Comments (10)

andycraig avatar andycraig commented on May 19, 2024 7

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.

Ladvien avatar Ladvien commented on May 19, 2024 6

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.

andycraig avatar andycraig commented on May 19, 2024 5

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.

jacob-long avatar jacob-long commented on May 19, 2024 3

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.

Ikuyadeu avatar Ikuyadeu commented on May 19, 2024

@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.

Ikuyadeu avatar Ikuyadeu commented on May 19, 2024

@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.

audyavar avatar audyavar commented on May 19, 2024

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.

andycraig avatar andycraig commented on May 19, 2024

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.

assignUser avatar assignUser commented on May 19, 2024

See #378 #395

from vscode-r.

andycraig avatar andycraig commented on May 19, 2024

Closed by #429. Thanks again @renkun-ken!

from vscode-r.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.