vallotlab / ChromSCape

ChromSCape
https://vallotlab.github.io/ChromSCape/
14 stars 8 forks source link

How to deploy the ChromSCape ShinyApp on ShinyServer? #15

Closed zhangdudu0 closed 5 months ago

zhangdudu0 commented 1 year ago

Can you lend me a helping hand?

zhangdudu0 commented 1 year ago

I can't use launchApp() in the cmd window image

Pacomito commented 1 year ago

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)
zhangdudu0 commented 1 year ago

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. image image

Pacomito commented 11 months ago

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