Save output to local computer from Shiny.io server

1,130 views
Skip to first unread message

Harold Doran

unread,
Aug 8, 2016, 7:53:05 AM8/8/16
to Shiny - Web Framework for R
My app has a textInput box that provides the user with an option to specify the location for saving output from an R function. When run from a local machine, the user might enter something like the following into this text box:

c:\path\to\my\folder

However, I have deployed this app now over to the shiny.io server so it is now running as a web app. When the user enters the same file path as the example above, it fails and kicks back the R error that it cannot open that directory.

I presume because it is looking to see if that directory exists on the shiny and not the local machine.

Any advice on what path convention I would enter to save to the local machine? OR, is there a way to program the app to always point to the users local machine as they will always save there?


Esteban Morales

unread,
Aug 17, 2016, 2:05:45 AM8/17/16
to Shiny - Web Framework for R
Hi Harold,

There probably isn't a way to automatically point to a user's machine and upload files to that location for security reasons.

Maybe this will help:

Link to example:

R Shiny has a way for users to download data from the app with a save location prompt.
Reply all
Reply to author
Forward
0 new messages