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

ERROR: dependency ‘VGAM’ is not available for package ‘poweRlaw’ #75

Closed BrunoCortez420 closed 6 years ago

BrunoCortez420 commented 6 years ago

Hi, I recently installed RStudio and tried to install the poweRlaw package. It fails with the following error: ERROR: dependency ‘VGAM’ is not available for package ‘poweRlaw’

I then installed VGAM-data package and re-run install.packages("poweRlaw"), but the same error occurred.

I'm running RStudio on a Ubuntu 16.04 box.

How can I solve this issue? Thanks

csgillespie commented 6 years ago

What version of R are you using, i.e. sessionInfo()

BrunoCortez420 commented 6 years ago
> sessionInfo()
R version 3.2.3 (2015-12-10)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 16.04.4 LTS
csgillespie commented 6 years ago

I think it's a problem with your version of R. I don't have R 3.2 so can't check. Can you update?

BrunoCortez420 commented 6 years ago

Yeah, updating to the newest version solved the problem, thanks! For completeness, here's the commands I ran to upgrade R:

sudo apt-get --purge remove r-base-core
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
sudo add-apt-repository 'deb [arch=amd64,i386] https://cran.rstudio.com/bin/linux/ubuntu xenial/'
sudo apt-get update
sudo apt-get install r-base
sudo R

R version 3.4.4 (2018-03-15) -- "Someone to Lean On"
Copyright (C) 2018 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

Then running install.packages("poweRlaw") works :)