The following code runs nicely in the console or from an .r-file: library(rstudioapi) thisisthepathvariable <- rstudioapi::selectDirectory(caption = "Select
cartesian
yii2-rbac
lazyvstack
django-oauth-toolkit
pygrib
autorest
entrust
veins
urlretrieve
grapecity
pad
nsitemprovider
datediff
joystick
visitor-statistic
pyqt
fuzzy
multicollinearity
wordpress-shortcode
webpack-hmr
bundle-release-js-and-assets
variable-declaration
parameterized-unit-test
kubelet
progress-bar
tadoquery
mox
imbalanced-data
android-inputtype
ngtable