如何將GGRAPH軟件包安裝到最新的R (v.3.3.2)

[英]How to install GGRAPH package to the latest R (v.3.3.2)


I am very new to R and I need ggraph library and it can't be installed from rstudio console. Here is a message:

我對R非常陌生,我需要ggraph庫,它不能從rstudio控制台安裝。這是一個信息:

Warning in install.packages : package ‘ggraph’ is not available (for R version 3.3.2)

在安裝警告。軟件包:“ggraph”軟件包不可用(適用於R版本3.3.2)

Are there other ways of installation? Looks like this library lives and flourishes:

還有其他安裝方式嗎?看起來這個圖書館充滿生機和活力:

https://www.r-bloggers.com/introduction-to-ggraph-layouts/

https://www.r-bloggers.com/introduction-to-ggraph-layouts/

1 个解决方案

#1


3  

This requiresudunits2 library.

這個requiresudunits2庫。

I use conda R, so I installed it using conda install -c ioos udunits2=2.2.20. You need to use a package manager to get it installed.

我使用conda R,所以我使用conda install -c ioos udunits2=2.2.20來安裝它。您需要使用包管理器來安裝它。

Then install the udunits2 R package

然后安裝udunits2 R包

install.packages('udunits2', type = "source",
                     configure.args=c('--with-udunits2-lib=/Users/Karthik/anaconda/lib'))

Replace /Users/Karthik/anaconda/lib with the path to your R libraries. You can find it using .libPaths()

將/Users/Karthik/anaconda/lib替換為到R庫的路徑。可以使用.libPaths()找到它

Finally install the development version of R packages

最后安裝R包的開發版本

devtools::install_github("thomasp85/ggraph", dependencies=TRUE)

注意!

本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:https://www.itdaan.com/blog/2017/02/18/725a2388db2f47ca40b67df58e98f08.html



 
粤ICP备14056181号  © 2014-2021 ITdaan.com