Every time I try to install a package on R studio I get a ton of errors while it downloads and it results in it not working--often what happens is it tries to install other packages and I get a compiling error of some sorts.
The errors come one after another each time with a new package that the terminal is trying to install to create the desired package.
I realized that I didn't have the actual R language downloaded to my laptop so I uninstalled r studio and installed It then re installed studio and the same exact thing happened. Not sure what else there is to do--I am on an apple silicon and have xcode installed as well
here is an example of the errors
ERROR: compilation failed for package ‘vctrs’
- removing ‘/Users/samdisorbo/opt/anaconda3/envs/R_programming/lib/R/library/vctrs’
Warning in install.packages :
installation of package ‘vctrs’ had non-zero exit status
ERROR: dependencies ‘lifecycle’, ‘vctrs’ are not available for package ‘pillar’ - removing ‘/Users/samdisorbo/opt/anaconda3/envs/R_programming/lib/R/library/pillar’
Warning in install.packages :
installation of package ‘pillar’ had non-zero exit status