如何将GGRAPH软件包安装到最新的R(v.3.3.2)
我对R非常陌生,我需要ggraph库,无法从rstudio控制台安装它.这是一条消息:
I am very new to R and I need ggraph library and it can't be installed from rstudio console. Here is a message:
install.packages中的警告:软件包"ggraph"不可用(对于 R版本3.3.2)
Warning in install.packages : package ‘ggraph’ is not available (for R version 3.3.2)
还有其他安装方式吗?看起来像这个图书馆生活并蓬勃发展:
Are there other ways of installation? Looks like this library lives and flourishes:
这需要udunits2
库.
我使用conda R,所以我使用conda install -c ioos udunits2=2.2.20
安装了它.您需要使用软件包管理器进行安装.
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.
然后安装udunits2
R软件包
install.packages('udunits2', type = "source",
configure.args=c('--with-udunits2-lib=/Users/Karthik/anaconda/lib'))
将/Users/Karthik/anaconda/lib
替换为R库的路径.您可以使用.libPaths()
Replace /Users/Karthik/anaconda/lib
with the path to your R libraries. You can find it using .libPaths()
最后安装 R软件包的开发版本
devtools::install_github("thomasp85/ggraph", dependencies=TRUE)