Loading my Workspace into my Shiny Server for App Deployment

229 views
Skip to first unread message

Nick Brenn

unread,
Sep 11, 2015, 1:03:04 PM9/11/15
to Shiny - Web Framework for R
Hi all,

I have set up my Shiny Server on Ubuntu 12.04.  I have added my server.R and ui.R files to /srv/shiny-server/MyApp/.

My question is, when I developed my server.R and ui.R, my processed data files were saved in my workspace.  I have a data folder inside of /MyApp/, which contains all of the raw data files and also my .RData file for the workspace.

However, when I load my application in my browser, it tells me that the data objects cannot be found?  So, my question is, how can I load that workspace that contains my data objects referenced in my Shiny app, into my deployed Shiny app on the server?

Thanks!

Nick Brenn

unread,
Sep 11, 2015, 2:52:20 PM9/11/15
to Shiny - Web Framework for R
I solved this by placing the load function in both ui.R and server.R
Reply all
Reply to author
Forward
0 new messages