Accessing Hidden Library Folders in Mac


#1

I am Mac User. Whenever I want to access Mail folder located in the /Users/user_name/Library/Mail folder; RStudio just ignores it and doesn't see any files.

setwd("/Users/user_name/Library/Mail")`
list.dirs("/Users/user_name/Library/Mail")
character(0)

I understand that because of access to these files requires admin authorization, the RStudio cannot access them. Is there a way to grant admin access to RStudio?


#2

Stack Overflow user hrbrmstr solved this problem. Here I share the solution below:

Try adding both the R executable and RStudio executable (drag their icons) to the Full Disk Access element under the Privacy tab of System Preferences => Security & Privacy.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.