-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot open browser from callr process #177
Comments
Motivation: ropensci/targets#248. My workaround is to launch the app in |
That is intentional: Line 106 in 5cf65b9
For the early use cases we did not want subprocesses to open browsers. It is somewhat different nowadays, but probably too late to change. Workaround: callr::r(
function() browseURL("https://github.com"),
env = c(R_BROWSER = Sys.getenv("R_BROWSER"))
) |
Thanks, @gaborcsardi. That's totally fair. I actually figured out a different workaround that does not require
Currently using this in |
callr::r(function() browseURL("https://github.com"))
does not open a browser window even thoughbrowseURL("https://github.com")
does. This is relevant for non-blocking Shiny apps, e.g.shiny::runApp(launch.browser = TRUE)
.The text was updated successfully, but these errors were encountered: