getFileFolderPath: Show dialogs to select files or folders

Description Usage Arguments Value Examples

View source: R/Project.R

Description

The function shows the dialog to select files or folders. The functions change depending on the OS in which RStudio is running. It is only called internally

Usage

1
getFileFolderPath(type = "dir", caption = "", extension = "", new_flag = F)

Arguments

type

Type of document to get a path for. dir for directory or file for file

caption

Caption to display for choose file/directory modal

extension

extensions to display for selecting file type

new_flag

Logical value for the "new" parameter in file.choose. Only used on MacOS

Value

path to the selected file or directory

Examples

1
2
3
4
5
## Not run: 
getFileFolderPath("dir","Select PLETHEM Project Directory)
getFileFolderPath("file","Select )

## End(Not run)

ScitoVation/plethem documentation built on Oct. 1, 2020, 3:37 a.m.