unable to change a working directory to a network path

The network drive is visible from windows explorer but you cant see the drive from within the RStudio application i.e. if you navigate to Session > Set working Directory > Choose Directory

The error i get is "error in setwd("H:/") : cannot change working directory

RStudio version 2024.04.2.0 running on Windows 11 24H2

That's a pretty old version of RStudio. If possible, you might want to consider updating it.

If you go to the Terminal pane in RStudio, can you change to H:/ there?

Thanks, I've tried upgrading to the latest version and still experience the same issue and I'm not able to change the directory from the Terminal pane.

Are you aware if its possible to map to a unc path?

I'm not a Windows user, so I have no first-hand experience with that. Is there any chance that the path has restricted access and RStudio is running as a user that does not have permission? The fact that you can't make the switch in the terminal pane suggests it is not an R/RStudio issue.

Also, just to be safe, can you make the change in a Windows terminal (command prompt)?

You might want to set to the full UNC path instead of the mapped drive. I recommend Path Copy Copy - https://superuser.com/questions/244579/copy-unc-network-path-not-drive-letter-for-paths-on-mapped-drives-from-windows

I was able to map to the UNC path but i will also try Path Copy Copy, thankyou...