fileBrowserInfoInput {psichomics} | R Documentation

## File browser input

### Description

Input to interactively select a file or directory on the server

### Usage

    fileBrowserInfoInput(id, label, infoContent = NULL, clearable = FALSE)

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

### Arguments

`id` | Character: input identifier
`label` | Character: input label (if `NULL`, no labels are displayed)
`infoContent` | Character: text to show as content of information
`clearable` | Boolean: allow to clear selected file or directory?
`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 pop-overs
`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

### 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

https://github.com/wleepang/shiny-directory-input

### See Also

`updateFileBrowserInput()` and `prepareFileBrowser()`

[Package psichomics version 1.18.6 Index]