简体   繁体   中英

Error in R package installation "This version of R is not set up to install source packages"

I want to download topGO by biocManager. Then I was faced with compilation failed for package 'SparseM'. I tried to upgrade gcc with brew. However, after upgrade, I can not install any packages.

> install.packages("shiny")
Installing package into ‘/usr/local/lib/R/3.5/site-library’
(as ‘lib’ is unspecified)
Error in install.packages : This version of R is not set up to install source packages
If it was installed from an RPM, you may need the R-devel RPM
Warning message:
In .rs.normalizePath(libPaths) :
  path[2]="/usr/local/Cellar/r/3.5.1/lib/R/library": No such file or directory

I faced the same issue with RStudio after a brew upgrade command on a terminal. I simply had to restart RStudio and it worked fine.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM