R Shiny Setting the folder that opens in fileInput

I use fileInputin shiny. Now, what I would like to do is identify the folder that is shown based on the file download button. So, for example, I would like to make sure that the explorer window opens C: / test / test instead of its default library (which could be, for example, C: / test). So, I would like to indicate something like

fileInput("PE_TS","",multiple=FALSE,path="C:/test/test)

where pathis the path that I would like to show in the explorer.

How should I do it?

+4
source share
1 answer

There is a package called shinyFiles
https://github.com/thomasp85/shinyFiles

I have not tried it myself, but noticed that it has a parameter root, so it can do what you want

0
source

All Articles