How to install GGRAPH package to the latest R (v.3

2019-07-04 19:18发布

问题:

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)


标签: r package ggraph