0

I want to change the working directory and using setwd I don't get any error message. Yet the working directory doesn't change. Could someone help me out?

My code and output:

> setwd("/Users/username/Desktop/Replication/Data")
> getwd()
[1] "/Users/username"
jay.sf
  • 60,139
  • 8
  • 53
  • 110
mezzomix
  • 3
  • 2
  • 1
    You need to give more context. How did you run those lines? Were you using R in the console, in RStudio, or what? Have the `setwd` or `getwd` functions been modified? They should both be calls to `.Internal()` in `base`. – user2554330 May 07 '23 at 13:47
  • see e.g. here: https://stackoverflow.com/questions/33692296/having-trouble-setting-working-directory – I_O May 07 '23 at 14:30

0 Answers0