Launching shiny from a command line

1,089 views
Skip to first unread message

PF

unread,
Mar 11, 2013, 2:57:13 PM3/11/13
to shiny-...@googlegroups.com
I am having trouble launching shiny from a command line - when I execute the runApp from within an rGui/rStudio it launches a firefox window and works, but when I run R from a command line and pipe in the same script (which is just a wrapper) the program hangs at "Listening on port 8100" - is there a browser setting that needs to be set when running it from the command line? I have added the browser directory to my path.

call is
R --no-save  < shinyLoader.R

OS Windows 7, Browser Firefox v19, R 2.15.2, RStudio

Thanks
Peter

Joe Cheng

unread,
Mar 11, 2013, 3:00:28 PM3/11/13
to shiny-...@googlegroups.com
It is working but by default Shiny doesn't automatically launch a
browser if it's running in a non-interactive R session. You can force
it to launch a browser anyway by passing the "launch.browser=TRUE"
argument to runApp.
> --
> You received this message because you are subscribed to the Google Groups
> "Shiny - Web Framework for R" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to shiny-discus...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
Reply all
Reply to author
Forward
0 new messages