getVolumes | R Documentation |
This function is intended as an input to the roots parameter in
fileGetter()
and shinyFileChoose()
. It returns a
function that returns a named vector of available volumes on the system. This
construction makes it dynamic so that a shinyFiles instance reflects new
volumes as they get added (e.g. usb drives). The function takes a single
argument giving names of volumes the developer wants removed from the return
value.
getVolumes(exclude)
exclude |
A vector of volume names to be excluded from the return value |
The function is OS specific and looks for volumes/drives in different places depending on the system on which shiny is running.
Returns all drives mapped to a letter
Looks in /Volumes/ and lists the directories therein
Returns the system root
If the function does not recognize the system under which it is running it will throw an error
A function returning a named vector of available volumes
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.