fileBrowserInput {psichomics} | R Documentation

## File browser input

### Description

Input to interactively select a file or directory on the server

### Usage

    fileBrowserInput(id, label, value = NULL, placeholder = NULL,
      info = FALSE, infoFUN = NULL, infoPlacement = "right",
      infoTitle = "", infoContent = "")

### Arguments

`id` | Character: input identifier
`label` | Character: input label (NULL to show no label)
`value` | Character: initial value (paths are expanded via `path.expand`)
`placeholder` | Character: placeholder when no file or folder is selected
`info` | Boolean: add information icon for tooltips and popovers
`infoFUN` | Function to use to provide information (e.g. `shinyBS::bsTooltip` and `shinyBS::bsPopover`)
`infoPlacement` | Character: placement of the information (top, bottom, right or left)
`infoTitle` | Character: text to show as title of information
`infoContent` | Character: text to show as content of information

### Details

To show the dialog for file input, the `prepareFileBrowser` function needs to be included in the server logic.

This widget relies on `fileBrowser` to present an interactive dialogue to users for selecting a directory on the local filesystem. Therefore, this widget is intended for shiny apps that are run locally - i.e. on the same system that files/directories are to be accessed - and not from hosted applications (e.g. from https://www.shinyapps.io).

### Value

HTML elements for a file browser input

### Source

Original code by wleepang: https://github.com/wleepang/shiny-directory-input

### See Also

`updateFileBrowserInput` and `prepareFileBrowser`

[Package psichomics version 1.10.2 Index]