How to change the default directory Rstudio

method one,

After each start Rstudio, code execution

setwd("F:/R/R_data")

 The default directory will be changed to the position of the path within double quotes.

Method Two,

For Rstudio set once.

① Click Tools, open the Global Options.

 

 ② location settings, click Apply to confirm.

 ③Rstudio after the restart, the default directory on the amendment done!

Guess you like

Origin www.cnblogs.com/jiaxinwei/p/11516521.html