get working directory rstudio
# For getting current working directory in terminal in Rstudio getwd() setwd(dir)
Source: stat.ethz.ch
rstudio working directory
# Imports data from outside the working directory, allows to choose the file d <- readRDS(file = file.choose())
Source: www.r-tutorial.nl