fileChooserWithResetServer: A formatted directory input using shinyFils with the UI...

View source: R/mod_shinyFiles.R

fileChooserWithResetServerR Documentation

A formatted directory input using shinyFils with the UI rendered from the server to enable resetting. The format is based on AdminLTE v2 (shinydashboard)

Description

A formatted directory input using shinyFils with the UI rendered from the server to enable resetting. The format is based on AdminLTE v2 (shinydashboard)

Usage

fileChooserWithResetServer(
  id,
  roots,
  reset,
  label,
  title,
  multiple = TRUE,
  filetypes = NULL,
  pattern = NULL
)

Arguments

id

Module id.

roots

A named vector of absolute filepaths or a function returning a named vector of absolute filepaths (the latter is useful if the volumes should adapt to changes in the filesystem).

reset

A reactive value to trigger the re-rendering of the UI.

label

The button label.

title

The browser window title.

multiple

A logical indicating whether or not it should be possible to select multiple files

filetypes

A character vector of file extensions (without dot in front i.e. 'txt' not '.txt') to include in the output. Use the empty string to include files with no extension. If not set all file types will be included

pattern

A regular expression used to select files to show. See base::grepl() for additional discussion on how to construct a regular expression (e.g., "log.*\.txt")


Frederic-gci/shiny4oracle documentation built on April 16, 2022, 3:07 p.m.