I'm very new to R. I'm using RStudio Version 1.3.959 on Mac Version 10.15.6. I keep getting this error.
"Error in setwd(mainDir) : cannot change working directory". I tried changing the path to desktop, downloads, a new folder, iCloud drive but nothing seems to resolve the error. Can anyone help me resolve the issue? Thank you.
PFA images showing the code I'm trying to run and output I'm getting.
I'm very new to R. I'm using RStudio Version 1.3.959 on Mac Version 10.15.6. I keep getting this error. "Error in setwd(mainDir) : cannot change working directory". I tried changing the path to desktop, downloads, a new folder, iCloud drive but nothing seems to resolve the error. Can anyone help me resolve the issue? Thank you.
PFA images showing the code I'm trying to run and output I'm getting.