Closed zhangdudu0 closed 5 months ago
I can't use launchApp() in the cmd window
Hi ! If you run the following code, does it produces a similar error ?
utils::browseURL("http://google.com/")
If so, it means that you do not have a browser available on your server.
To make the app available to other, you do not have to use shinyserver: https://stackoverflow.com/questions/23750096/publish-rstudio-shiny-app-in-intranet?rq=3
In your case this would be:
ip="192.168.178.10" # change this!
library(ChromScape)
launchApp(host=ip)
I apologize for the late reply. I did not receive the notification from GitHub! The errors still happen! I installed ChromSCape within a conda environment.
Dear Zhangdudu,
The launchApp functions calls the utils::browseURL. In your case, the browser is not found, as we can see with the error :
utils::browseURL("http://google.com/")
Error in utils::browseURL 'browser' must be a non-empty character
You should find the path to your browser in your computer, e.g '/usr/bin/firefox' and see if running
utils::browseURL("http://google.com/", browser = '/usr/bin/firefox')
works.
If it do, then the browser can be added in option before launching ChromSCape:
options(browser = '/usr/bin/firefox')
library(ChromSCape)
launchApp()
I hope it answers your question, Pacôme
Can you lend me a helping hand?