Error, on development a shiny-app with RStudio-server on a /home subdirectory

543 views
Skip to first unread message

Nestor Montaño

unread,
Jul 23, 2013, 1:49:55 PM7/23/13
to shiny-...@googlegroups.com
Hello, 

I don't know if this is the right place to ask this, so i'm sorry if is not.

I've set a shiny-server and RStudio-server on a CentOS 6 server, both work well but now I want the user to develop the shiny apps as if they were RStudio projects so when the apps work well, the admin do copy/paste to /var/shiny-server/www/. I mean, the user have a directory like this /home/user/shiny_apps/app1/ to develop the shiny-app, so he has to conect to the server using RStudio-server, he opens the project, does runApp() and in the browser try to open http://serverIP:8100 but the app seems frozen; the UI looks well but it seems like the shiny built the html UI and later get error (gris background), there is not data ni graphs

I tried doing runExample("01_hello") but the browser shows the widget (gris background) and nothing else

If I try to runExample("01_hello") from terminal using putty I get this error
Listening on port 8100
/usr/bin/xdg-open: li­nea 402: htmlview: no se encontro la orden
Error: no display specified
/usr/bin/xdg-open: l­inea 402: mozilla: no se encontro la orden
/usr/bin/xdg-open: li­nea 402: netscape: no se encontro la orden
/usr/bin/xdg-open: li­nea 402: links: no se encontro la orden
/usr/bin/xdg-open: li­nea 402: lynx: no se encontro la orden
xdg-open: no method available for opening 'http://localhost:8100'


I dont want to give acces to /var/shiny-server/www/ to anyone to develop a shiny-app, I don't have strong IT knowledge but they told me that only root must have this acces, ¿What can I do?


Thanks in advance

Joe Cheng

unread,
Jul 23, 2013, 3:16:54 PM7/23/13
to shiny-...@googlegroups.com
When the user opens the browser and points to http://serverIP:8100, what browser is that? IE8 and 9 are only supported when going through Shiny Server, not when Shiny apps are being served directly out of R (as in this case). Firefox, Chrome, Safari should all be OK though.

I think the best solution would be to configure your Shiny Server to serve not only /var/shiny-server/www, but also run in autouser mode.



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

Nestor Montaño

unread,
Jul 24, 2013, 9:57:19 AM7/24/13
to shiny-...@googlegroups.com
The browser is Firefox 22.

I followed the instructions to do autouser mode  it works! Thanks, the bad side is It imply that the app is "always on" and I didn't want that, but anyway the autouser mode it's ok. 
Reply all
Reply to author
Forward
Message has been deleted
0 new messages