select_directory: Interactively choose a directory

Description Usage Arguments Value

View source: R/misc_fun.R

Description

This is a wrapper to select a directory path to process. Depending on the mode R is invoked from, choosing is interactive and may use the RStudio IDE.

Usage

1
2
3
4
5
select_directory(
  path = getwd(),
  caption = "Select a directory",
  label = "Select"
)

Arguments

path

A character vector of length 1 to start browsing; defaults to the current working directory.

caption

The window title.

label

The label to use for the 'Accept' / 'OK' button.

Value

A character with the path of the chosen directory.


benjbuch/summerr documentation built on July 11, 2021, 9:40 a.m.