Default working directory never changes, even in project

I just received a new computer at work. No matter where I set the default working directory in Global Options, the startup working directory never changes from Desktop. When I open a project, the working directory remains Desktop. Any help? Thanks!

[1] "C:/Documents and Settings/michael.j.laviolette/Desktop"

R version 3.5.2 (2018-12-20)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)

Matrix products: default

[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252   
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C                          
[5] LC_TIME=English_United States.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
[1] compiler_3.5.2   rsconnect_0.8.13 tools_3.5.2      yaml_2.2.0 

Check out RStudio Projects,

Another option is to use .Rprofile and .Renviron files to ensure you're working with the right working directory.

1 Like

That's it--I had restored an old and forgot it had a setwd call. Problem solved; thanks!

This topic was automatically closed 7 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.