Glen
Glen

Reputation: 1772

Importing Data with Shiny and RStudio

Is it possible to load the data from within Shiny (such as a csv file) or does all relevant data need to be in the source code?

I am interested in developing a Shiny App and distributing it, but the data will come from user’s machines, which I would like to load from within Shiny.

If it is not possible to directly load from the Shiny App, what would be the best way for users to specify where the data is? This is for users with no R experience so I want to make it as easy as possible.

Upvotes: 5

Views: 2431

Answers (1)

Joe Cheng
Joe Cheng

Reputation: 8061

You can call file.choose() while the app is starting up (e.g. in server.R before the call to shinyServer). Does that help?

Upvotes: 7

Related Questions