FilePathModule: FilePathModule

View source: R/Module_FilePathModule.R

FilePathModuleR Documentation

FilePathModule

Description

module to find filepaths for select directory operations, can display just a button or a button with a display of the filepath.

Usage

FilePathModule(
  input,
  output,
  session,
  filepaths = reactive({     .MseekOptions$filePaths }),
  label = "Select Folder",
  description = "Select Folder",
  displayFolder = F,
  selectFile = F,
  pattern = ""
)

FilePathModuleUI(id)

Arguments

input

arguments necessary for use with callModule()

output

arguments necessary for use with callModule()

session

arguments necessary for use with callModule()

filepaths

Named character vector of parent folder locations

label

button label

description

button description on hover

displayFolder

show filepath (boolean)

selectFile

if TRUE, will show menu to select files instead of a folder

pattern

file pattern, see shinyFileChoose()

id

id to be used to define a namespace via NS() (must match id in callModule for the server Module)

Value

a reactivevalues object with one element, either files or dir, specifying the selected files or folder

Functions

  • FilePathModule: server logic

  • FilePathModuleUI: UI elements


mjhelf/METABOseek documentation built on April 27, 2022, 5:13 p.m.