rstudio working directory code example
Example 1: r set working directory
setwd("/Users/SampleUser/Desktop/R")
Example 2: rstudio working directory
# Imports data from outside the working directory, allows to choose the file
d <- readRDS(file = file.choose())