csgillespie / poweRlaw

This package implements both the discrete and continuous maximum likelihood estimators for fitting the power-law distribution to data. Additionally, a goodness-of-fit based approach is used to estimate the lower cutoff for the scaling region.
109 stars 24 forks source link

Can't load "dependency ‘VGAM’ is not available" #77

Closed lujonathanh closed 6 years ago

lujonathanh commented 6 years ago

I tried installing poweRlaw by running:

and got this output:

Warning in install.packages : dependency ‘VGAM’ is not available trying URL 'https://cran.rstudio.com/bin/macosx/mavericks/contrib/3.3/poweRlaw_0.70.1.tgz' Content type 'application/x-gzip' length 3159081 bytes (3.0 MB)

downloaded 3.0 MB

The downloaded binary packages are in /var/folders/_q/9dbh4vh54gs6bglrqy1_lydr0000gn/T//Rtmpk9ViZN/downloaded_packages

Then when I try loading poweRlaw by running: library(poweRlaw)

I get the following output:

Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : there is no package called ‘VGAM’ Error: package or namespace load failed for ‘poweRlaw’

What should I do in order to load poweRlaw?

lujonathanh commented 6 years ago

never mind, my version of R was outdated. Sorry!