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

痞子三分冷 提交于 2019-12-10 20:26:14

问题


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

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:

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


回答1:


This requiresudunits2 library.

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.

Then install the udunits2 R package

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()

Finally install the development version of R packages

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


来源:https://stackoverflow.com/questions/42315364/how-to-install-ggraph-package-to-the-latest-r-v-3-3-2

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!