Reputation: 3441
I have used R Shiny in a Windows environment before. I am very new to Linux (a few days). I have downloaded Ubuntu (12.0.4) to try to run my R Shiny App.
To run R in Ubuntu I press ctrl-alt-t
to start the Temrinal. Then type R
in the terminal. And an R session starts in the terminal.
I have run these simple R codes:
library(shiny)
library(ggplot2)
runGist("https://gist.github.com/jcheng5/3239667")
The app opens in Firefox and is totally functional. However, when I close the app. And go back to the R session in the terminal, I cannot do anything? I have to "kill" the app from listening by closing the terminal. Then going through all steps above again. Is there some command I should run before/after runGist
so that I can tell shiny to stop running, such that I can easily resume my R session without having to kill everything?
In R Windows GUI I would just hit the escape key.
Upvotes: 3
Views: 2539
Reputation: 4584
Use Ctrl+C to send an abort command to the terminal.
You could also use Ctrl+Z to suspend the process running Shiny and then resume it with the foreground command fg
.
Upvotes: 5