Search code examples
rpackageggraph

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:

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/


Solution

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