> install.packages("tidyverse")
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/opt/anaconda3/envs/r_env/lib/R/library/stringi/libs/stringi.dylib':
dlopen(/opt/anaconda3/envs/r_env/lib/R/library/stringi/libs/stringi.dylib, 6): Library not loaded: @rpath/libicui18n.58.dylib
Referenced from: /opt/anaconda3/envs/r_env/lib/R/library/stringi/libs/stringi.dylib
Reason: image not found
Calls: <Anonymous> ... namespaceImport -> loadNamespace -> library.dynam -> dyn.load
Execution halted
ERROR: lazy loading failed for package ‘tidyverse’
* removing ‘/opt/anaconda3/envs/r_env/lib/R/library/tidyverse’
Warning in install.packages :
installation of package ‘tidyverse’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/dt/1kf7bk1x7179klgxspwg7s_c0000gn/T/RtmpRxtmsH/downloaded_packages’
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
> library(tidyverse)
Error in library(tidyverse) : there is no package called ‘tidyverse’
When you use RStudio trought Anaconda it is better to stick with the Anaconda's package manager instead of trying to manually install from CRAN, although, I would recommend not using Anaconda for your R work since RStudio is not officially supported through Anaconda.
Hi, thank you again! I just tried downloading R and RStudio separately, it worked! I thought it would be easier to use just one Anaconda for everything and it was more convenient this way and I was wrong.