After spending over 4 hours trying to fix my RStudio. the beginning for this whole process is that I tried to install.packages(“tm”) and it does not work
Firstly, I process Rstudio through Anaconda. Then, I tried to install new packages “tm”, “wordcloud” to finish my assessment. The error shows that this package couldn’t be installed “r-dependency slam is not available….”. The thing is several forum suggest that probably because of R version which is this package not working for R version lower than 3.3. OK I think, well I tried to update, upgrade whatever command is. Turns out it the version won’t updated (I do homebrew, updateR — It won’t work). So I install RStudio desktop version, error shows when I tried to install any packages “ installation of package xxxx had non-zero exit status” (it doesn’t work even I try to install “shiny”).
So, I completely uninstall R by using sudo rm -rf ~/file path (to see where is your R located use “which R” in your terminal). Then I follows the step suggested by Andrew Heiss.
All credits go to him and his article “Install R, RStudio, and R Commander in Windows and OS X” step-by-step and it fix all errors.
Hope this help anyone who desperately trying to fix these errors.
Cheers