user11893329
user11893329

Reputation:

R shiny in terminal

runApp("/home/jhaseon/projects/rproj/r/scripts/shiny/")

is creating error:

Listening on http://127.0.0.1:6527
Error in utils::browseURL(appUrl) : 
  'browser' must be a non-empty character string

I am trying to run R shiny in the terminal but I am running into the following error. Has anyone else ran into this issue?

Upvotes: 1

Views: 1733

Answers (2)

Justyna
Justyna

Reputation: 31

I suggest to set the default browser in your system settings, e.g. for the Ubuntu it's:

Settings -> Default Applications

and then keep the code like:

runApp("path_to_your_app", launch.browser = TRUE)

Upvotes: 0

Smalldjo
Smalldjo

Reputation: 21

looking at the code for shiny:runApp, adding launch.browser=F should solve your issue.

runApp("...", launch.browser = FALSE)

as to why this is happening, maybe a problem with a default browser not set ?

Upvotes: 2

Related Questions