RcppArmadillo

install.packages("tidyr")

ERROR: compilation failed for package ‘tidyr’

解决方法:

安装其他版本的,不要最新版本。

make: *** [cpp11.o] Error 1
ERROR: compilation failed for package ‘tidyr
* removing ‘/usr/lib64/R/library/tidyr’

https://cran.r-project.org/web/packages/tidyr/index.html

R CMD INSTALL -l /usr/lib64/R/library tidyr_1.0.0.tar.gz



ERROR: dependency ‘farver’ is not available for package ‘tweenr
* removing ‘/usr/lib64/R/library/tweenr’

https://cran.r-project.org/web/packages/tweenr/index.html

R CMD INSTALL -l /usr/lib64/R/library tweenr_0.1.5.tar.gz


ERROR: dependency ‘openssl’ is not available for package ‘httr
* removing ‘/usr/lib64/R/library/httr’

https://cran.r-project.org/web/packages/httr/index.html

https://cran.r-project.org/src/contrib/Archive/irlba/irlba_2.1.2.tar.gz

R CMD INSTALL -l /usr/lib64/R/library irlba_2.1.2.tar.gz

https://cran.r-project.org/web/packages/igraph/index.html

R CMD INSTALL -l /usr/lib64/R/library igraph_1.1.1.tar.gz
ERROR: dependency ‘irlba’ is not available for package ‘igraph’


ERROR: dependencies ‘igraph’, ‘tidyr’ are not available for package ‘tidygraph
* removing ‘/usr/lib64/R/library/tidygraph’
ERROR: dependency ‘igraph’ is not available for package ‘graphlayouts
* removing ‘/usr/lib64/R/library/graphlayouts’
ERROR: dependency ‘farver’ is not available for package ‘scales
* removing ‘/usr/lib64/R/library/scales’
ERROR: dependencies ‘httr’, ‘xml2’, ‘tidyr’ are not available for package ‘europepmc
* removing ‘/usr/lib64/R/library/europepmc’
ERROR: dependencies ‘isoband’, ‘scales’ are not available for package ‘ggplot2
* removing ‘/usr/lib64/R/library/ggplot2’
ERROR: dependencies ‘ggplot2’, ‘scales’, ‘tweenr’ are not available for package ‘ggforce
* removing ‘/usr/lib64/R/library/ggforce’
ERROR: dependencies ‘ggplot2’, ‘scales’ are not available for package ‘ggrepel
* removing ‘/usr/lib64/R/library/ggrepel’
ERROR: dependency ‘ggplot2’ is not available for package ‘viridis
* removing ‘/usr/lib64/R/library/viridis’
ERROR: dependencies ‘data.table’, ‘ggplot2’ are not available for package ‘fgsea
* removing ‘/usr/lib64/R/library/fgsea’
ERROR: dependencies ‘ggplot2’, ‘scales’ are not available for package ‘cowplot
* removing ‘/usr/lib64/R/library/cowplot’
ERROR: dependency ‘ggplot2’ is not available for package ‘ggplotify
* removing ‘/usr/lib64/R/library/ggplotify’
ERROR: dependencies ‘ggplot2’, ‘scales’ are not available for package ‘ggridges
* removing ‘/usr/lib64/R/library/ggridges’
ERROR: dependencies ‘ggplot2’, ‘scales’ are not available for package ‘UpSetR
* removing ‘/usr/lib64/R/library/UpSetR’
ERROR: dependency ‘ggplot2’ is not available for package ‘qvalue
* removing ‘/usr/lib64/R/library/qvalue’
ERROR: dependencies ‘ggplot2’, ‘ggforce’, ‘igraph’, ‘scales’, ‘ggrepel’, ‘viridis’, ‘tidygraph’, ‘graphlayouts’ are not available for package ‘ggraph’
* removing ‘/usr/lib64/R/library/ggraph’
ERROR: dependencies ‘fgsea’, ‘ggplot2’, ‘qvalue’ are not available for package ‘DOSE’
* removing ‘/usr/lib64/R/library/DOSE’
ERROR: dependencies ‘cowplot’, ‘DOSE’, ‘europepmc’, ‘ggplot2’, ‘ggplotify’, ‘ggraph’, ‘ggridges’, ‘igraph’, ‘UpSetR’ are not available for package ‘enrichplot’
* removing ‘/usr/lib64/R/library/enrichplot’
ERROR: dependencies ‘DOSE’, ‘enrichplot’, ‘ggplot2’, ‘qvalue’, ‘tidyr’ are not available for package ‘clusterProfiler’
* removing ‘/usr/lib64/R/library/clusterProfiler’

The downloaded source packages are in
    ‘/tmp/Rtmpu2F3gd/downloaded_packages’
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
Old packages: 'backports', 'RcppArmadillo'

原文地址:https://www.cnblogs.com/emanlee/p/13917678.html