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

install_github: Error: client error: (403) Forbidden #5

Closed damienchallet closed 11 years ago

damienchallet commented 11 years ago

Following the readme,

install_github('poweRlaw', 'csgillespie')
Installing github repo(s) poweRlaw/master from csgillespie
Installing poweRlaw.zip from https://api.github.com/repos/csgillespie/poweRlaw/zipball/master
Error: client error: (403) Forbidden

Thanks for your help

Damien

csgillespie commented 11 years ago

Hi Damien,

Where did you see that code? In previous versions (say a few months ago), you installed the package using that command. The Readme now has the following code:

library(devtools)
install_github("poweRlaw", "csgillespie", subdir="pkg")
damienchallet commented 11 years ago

Hi Colin,

I was being slightly elliptic: I did copy-paste from the readme:


> library(devtools)
> install_github("poweRlaw", "csgillespie", subdir="pkg")
Installing github repo(s) poweRlaw/master from csgillespie
Installing poweRlaw.zip from
https://api.github.com/repos/csgillespie/poweRlaw/zipball/master
Error: client error: (403) Forbidden
>
csgillespie commented 11 years ago

Hi Damien,

OK, the command works for me on my desktop and laptop.

  1. What operating system are you running?
  2. Does the install_github work for other repos? I think knitr uses this method
  3. Can you access the url https://api.github.com/repos/csgillespie/poweRlaw/zipball/master from your browser.
damienchallet commented 11 years ago

Distributor ID: Debian Description: Debian GNU/Linux 6.0.6 (squeeze) Release: 6.0.6 Codename: squeeze

R 2.15.2

I perfectly can access the url you gave me:

$ wget https://api.github.com/repos/csgillespie/poweRlaw/zipball/master --2013-05-03 10:39:15-- https://api.github.com/repos/csgillespie/poweRlaw/zipball/master Resolving api.github.com... 207.97.227.243 Connecting to api.github.com|207.97.227.243|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://codeload.github.com/csgillespie/poweRlaw/legacy.zip/master[following] --2013-05-03 10:39:15-- https://codeload.github.com/csgillespie/poweRlaw/legacy.zip/master Resolving codeload.github.com... 204.232.175.86 Connecting to codeload.github.com|204.232.175.86|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 988766 (966K) [application/zip] Saving to: “master”

100%[========================================================================================================================================>] 988,766 837K/s in 1.2s

It is possible to install the zip by hand ?

Thanks for your help!

Damien

csgillespie commented 11 years ago

Hi Damian,

You're running Debian. So,

  1. Download the zip file
  2. Unzip the file: unzip csgillespie-poweRlaw-
  3. cd into the csgillespie-poweRlaw directory
  4. R CMD INSTALL pkg/

Let me know if that works.

It may be a problem with devtools. Would you raise an issue on the devtools repo?

damienchallet commented 11 years ago

Dear Colin,

Yes indeed, it worked. Many thanks for your help! I will look into devtools and raise an issue if needed.

Best regards

Damien

On Fri, May 3, 2013 at 11:11 AM, Colin Gillespie notifications@github.comwrote:

Hi Damian,

You're running Debian. So,

  1. Download the zip file
  2. Unzip the file: unzip csgillespie-poweRlaw-
  3. cd into the csgillespie-poweRlaw directory
  4. R CMD INSTALL pkg/

Let me know if that works.

It may be a problem with devtools. Would you raise an issue on the devtools repo?

— Reply to this email directly or view it on GitHubhttps://github.com/csgillespie/poweRlaw/issues/5#issuecomment-17385096 .

damienchallet commented 11 years ago

Dear Colin,

The dependence on devtools is >=1.0, otherwise one gets the error 403 (the problem being that I don't have R 3.0 and devtools could not update itself to the latest version)

Thanks again for your help.

Best regards

Damien

On Fri, May 3, 2013 at 11:18 AM, Damien Challet damien.challet@gmail.comwrote:

Dear Colin,

Yes indeed, it worked. Many thanks for your help! I will look into devtools and raise an issue if needed.

Best regards

Damien

On Fri, May 3, 2013 at 11:11 AM, Colin Gillespie <notifications@github.com

wrote:

Hi Damian,

You're running Debian. So,

  1. Download the zip file
  2. Unzip the file: unzip csgillespie-poweRlaw-
  3. cd into the csgillespie-poweRlaw directory
  4. R CMD INSTALL pkg/

Let me know if that works.

It may be a problem with devtools. Would you raise an issue on the devtools repo?

— Reply to this email directly or view it on GitHubhttps://github.com/csgillespie/poweRlaw/issues/5#issuecomment-17385096 .