fileBrowser {psichomics}R Documentation

Interactive folder selection using a native dialogue

Description

Interactive folder selection using a native dialogue

Usage

fileBrowser(default = NULL, caption = NULL, multiple = FALSE,
  directory = FALSE)

Arguments

default

Character: path to initial folder

caption

Character: caption on the selection dialogue

multiple

Boolean: allow to select multiple files?

directory

Boolean: allow to select directories instead of files?

Details

Pltaform-dependent implementation:

If for some reason an error occurs (e.g. when using a remote server), the dialog fallbacks to an alternative, non-native file browser.

Value

A length one character vector, character NA if 'Cancel' was selected

Source

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


[Package psichomics version 1.10.1 Index]