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)?