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.

option to restart R session

See original GitHub issue

something akin to rstudioapi::restartSession() would be great.

Not sure whether that’s in scope for / possible for radian.

Same as:

q()
r

but could save you one line 🙂

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
randy3kcommented, Jul 22, 2021

I think at some point, we could move something like this to an R package, say, radianapi or just radian.

2reactions
randy3kcommented, Jul 22, 2021

Here you are. 😃

restart <- function() {
    getOption("rchitect.py_tools")$attach()
    os <- import("os")
    sys <- import("sys")
    os$execv(sys$executable, c("sys$executable", "-m", "radian"))
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Quit and restart a clean R session from within R?
If you're in RStudio: command/ctrl + shift + F10. You can also use .rs.restartR().
Read more >
Quit & Restart Clean R Session from within R (Example)
In this tutorial, I'll illustrate how to close and restart a new R programming session from within RStudio in the R programming language....
Read more >
restart function - RDocumentation
It is not possible to restart an R session in RStudio using this function. Note, RStudio provides .rs.restartR() which will indeed restart the...
Read more >
Chapter 1 Saving source and blank slates
1.4 Restart R often during development · In an R script, use Ctrl+Alt+B (Windows and Linux) or Command+Option+B (Mac OS) · In R...
Read more >
Restart the R Session — restartSession • rstudioapi
Restart the RStudio session. restartSession(command = "") ...
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