Shiny Dashboard on Shiny Server Problems

356 views
Skip to first unread message

Jason Watts

unread,
Apr 30, 2015, 12:28:46 PM4/30/15
to shiny-...@googlegroups.com
I am wrestling with runny shinydashboard on my Shiny server. It acts like the library isnt even installed. I need shinysignals installed and it isnt working. I need to know how install from github, through the linux terminal like the rest of the libraries were installed. I think this would fix the problem.
 
Has anyone succsefully ran a dashboard with the package shinydashboard installed? If so, could you get a short explanation of how you got it working.
 
Thank you.

Joe Cheng

unread,
Apr 30, 2015, 1:39:32 PM4/30/15
to Jason Watts, shiny-...@googlegroups.com
When you install packages for Shiny Server, you need to install them either as the "shiny" user, or as root (which will install them system-wide). Otherwise, if you just install it when logged in as yourself, you're just installing it for you, not for the shiny user.

Here's how you would do it as root:

sudo su - -c "R -e \"install.packages('shinydashboard', repos='http://cran.rstudio.com/')\""

and here's how you would do it as shiny (I think):

sudo su shiny - -c "R -e \"install.packages('shinydashboard', repos='http://cran.rstudio.com/')\""

If you want to install from github, first do the above but with "devtools" instead of "shinydashboard". Then run one of these:

sudo su - -c "R -e \"devtools::install_github('hadley/shinySignals')\""  # as root
sudo su shiny - -c "R -e \"devtools::install_github('hadley/shinySignals')\""  # as shiny

Hope that helps.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/shiny-discuss/c735812f-f82f-4353-953b-6f42e86217d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages