Same problem with me, when I use conda create R environment.
Below it work for me, change the path of site-library.
Try this instead.
sudo chmod 777 -R /usr/local/lib/R/site-library