Replies: 1 comment 2 replies
-
Hi, this extension does focus on interactive R use but you can use VS Code's built-in features to run code non-interactively. For example, if you want to run a file using Rscript you can open a terminal and run VS Code also provides Tasks for automating flows that would normally be done with command-line scripts. You could create a Task that when run calls Rscript on the current file. This section of the Tasks documentation talks about using the current file: https://code.visualstudio.com/docs/editor/tasks#_variable-substitution Does that sound like it would do the job? If not, can you provide more detail about how you use Rscript in Sublime? Then we can try to suggest an equivalent VS Code approach. |
Beta Was this translation helpful? Give feedback.
-
I am currently looking at VScode as a potential replacement for my current editor (Sublime). My R workflow usually involves invoking R scripts non-interactively (i.e. via
Rscript script.r
), but from what I've gathered this extension always starts an interactive R console and executes asource()
command into it. Is it possible to run R non-interactively and capture the (ANSI) output of the script or is it not supported?Beta Was this translation helpful? Give feedback.
All reactions