Rstudio cannot see files in a mounted directory but R can?

On a Mac Sequoia 15.3.1, I have mounted an external folder from my computing cluster.

When I try to read files from a folder, Rstudio is unable to see these files.

Weirdly, when I just open R (same version which my Rstudio is using) from the command line, I'm able to read/write/see the files. I can also access them just on command line with head, ls, etc.

Rstudio however cannot see these files as existing?

Do you mean that RStudio does not find them in the files pane, or that code running in RStudio cannot use them?

Either. But basically typing in something like list.files("~/cluster/my folder") returns nothing when I'm running through Rstudio but if running R from terminal the files are present

I take it that list.files("~/cluster/my folder") fails both in an R script in RStudio and also in the RStudio console tab? Are you able to change to that directory in the RStudio terminal tab?

Also, does running system("who") produce the correct identity for you (specifically, one having access rights to the cluster mount)?

RStudio may not inherit the same permissions or environment variables as your terminal session. Try launching RStudio from the terminal using open -a RStudio this often resolves such mount visibility issues on macOS.

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