question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Send code from .R file to R Console

See original GitHub issue

Is there any way to create a keybinding run code from a .R file without invoking the system commands? Specifically looking for a way to run code similarly to ESS in Emacs, using C-j and C-c (where the first C in both cases is the Ctrl key) to send a line and chunk (paragraph), respectively. Could this be added into the extension?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Ladviencommented, Jul 9, 2018

@andycraig go for it. I’m a bit swamped at my job, so if I get to it, it won’t be soon.

1reaction
robertamezquitacommented, Oct 30, 2017

The only other one I can think of is ggplot2 calls that use the + operator, but besides that, I think those are the main ones!

On Mon, Oct 30, 2017 at 8:00 AM, Thomas Brittain notifications@github.com wrote:

@robertamezquita https://github.com/robertamezquita I’ve added chunk detection for blocks #31 https://github.com/Ikuyadeu/vscode-R/pull/31. I’m going to get some feedback, but after I’ve confirmed it’s not bogging the extension, I’ll move on to pipes and multi-line functions. Any other “chunk” types you can think of?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Ikuyadeu/vscode-R/issues/26#issuecomment-340423783, or mute the thread https://github.com/notifications/unsubscribe-auth/ACU2LQnc_jxtpr6K9_n1BPGvJCRYLFqaks5sxbp6gaJpZM4PrjFR .

– Robert A. Amezquita HHMI Gilliam Fellow | Blavatnik Associate PhD Candidate | Kleinstein & Kaech Labs Yale University | Department of Immunobiology 300 George St, Suite 505 New Haven, CT 06511-6663 Mobile: 858-245-3350 Email: robert.amezquita@yale.edu

Read more comments on GitHub >

github_iconTop Results From Across the Web

Send code from .R file to R Console · Issue #26 - GitHub
Is there any way to create a keybinding run code from a .R file without invoking the system commands? Specifically looking for a...
Read more >
4.2 Writing R scripts in an editor - YaRrr! The Pirate's Guide to R
4.2.1 Send code from an source to the console · Copy the code from the Editor (or anywhere that has valid R code),...
Read more >
How do I run an R script from within RStudio's built-in R ...
Short Answer using source() function. Once you download, install, and open the RStudio, you'll see a part in the lower left with blue...
Read more >
Saving an R script - YouTube
Your R script is a text file that you can save, close and open again later. You can even send it to someone...
Read more >
Sending commands from an R script into the R console
This video describes the keyboard shortcuts in R Studio for sending commands from an R script into the R console.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found