how to define a current working directory

I have a default working directory ('C:/Users/lijason1/Documents'). i have two questions:

  1. what is the command to specify my working directory ? or how to define a designated working directory at the beginning of the programing ?
  2. how can i find the answer from R documentation in Rstudio for my first question?


Use setwd. Better yet use projects in RStudio with the here package.

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.