Choose a folder interactively by choosing a file in that folder.

folder.choose()

Value

A character vector of length one giving the folder path.