Cross-platform choose directory function.

choose_directory(caption = "Select folder", default = "")

Arguments

caption

Caption for the choose directory dialog

default

Starting directory

Value

The path to the selected directory, or NA if the user canceled.