dynverse / dyno

Inferring, interpreting and visualising trajectories using a streamlined set of packages 🦕
https://dynverse.github.io/dyno
Other
166 stars 32 forks source link

dyno installation fails due to API limit rate #32

Closed abotzki closed 5 years ago

abotzki commented 5 years ago

Hi, Since one week or so, I experience issues when installing dyno via an ansible script on a google cloud server but also in an interactive R session on the same server. This has not been the case in the summer when I installed your tool for the summer school. Any ideas? Thanks a lot. Cheers, Alex

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)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> devtools::install_github('dynverse/dyno')
Error: HTTP error 403.
  API rate limit exceeded for 35.195.YY.XX. (But here's the good news: Authenticated requests get a higher rate lim
it. Check out the documentation for more details.)
  Rate limit remaining: 0/60
  Rate limit reset at: 2018-12-16 13:41:48 UTC
  To increase your GitHub API rate limit
  - Use `usethis::browse_github_pat()` to create a Personal Access Token.
  - Use `usethis::edit_r_environ()` and add the token as `GITHUB_PAT`.
> traceback()
8: stop(github_error(res))
7: github_DESCRIPTION(username = remote$username, repo = remote$repo, 
       subdir = remote$subdir, host = remote$host, ref = remote$ref, 
       pat = remote$auth_token %||% github_pat(), use_curl = use_curl)
6: remote_package_name.github_remote(remote)
5: remote_package_name(remote)
4: FUN(X[[i]], ...)
3: vapply(remotes, install_remote, ..., FUN.VALUE = character(1))
2: install_remotes(remotes, auth_token = auth_token, host = host, 
       dependencies = dependencies, upgrade = upgrade, force = force, 
       quiet = quiet, build = build, build_opts = build_opts, repos = repos, 
       type = type, ...)
1: devtools::install_github("dynverse/dyno")
abotzki commented 5 years ago

I looked a bit further and it turns out that the remote (or so) package ultimately calls /usr/bin/xdg-open.

via this post https://www.linuxquestions.org/questions/programming-9/xdg-open-no-method-available-for-opening-889242/ I figured that I need to install a browser.

After installing lynx as browser the installation succeeded when doing it manually. When doing it with the ansible script there is still an issue #33

haircell commented 5 years ago

Hi, I'm running into this same error. After installing lynx, how do you do the installation "manually"?

Thank you.


Error: HTTP error 403.
  API rate limit exceeded for [IP address]. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)

  Rate limit remaining: 0/60
  Rate limit reset at: 2019-03-01 09:30:57 UTC

  To increase your GitHub API rate limit
  - Use `usethis::browse_github_pat()` to create a Personal Access Token.
  - Use `usethis::edit_r_environ()` and add the token as `GITHUB_PAT`.
zouter commented 5 years ago

Hi

The way to fix this is to follow the instructions to increase your GitHub API rate limit:

Use usethis::browse_github_pat() to create a Personal Access Token.

This creates a github personal access token.

Use usethis::edit_r_environ() and add the token as GITHUB_PAT.

This adds this token to R's environment variables as GITHUB_PAT

Then restart R and you should be able to download everything (you will have a rate limit of 5000).

Wouter