httr

httr: a friendly http package for R

https://github.com/r-lib/httr

Science Score: 23.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    4 of 76 committers (5.3%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (15.1%) to scientific vocabulary

Keywords

api curl http r

Keywords from Contributors

package-creation travis-ci rmarkdown data-manipulation grammar pandoc codecov coverage coverage-report literate-programming
Last synced: 6 months ago · JSON representation

Repository

httr: a friendly http package for R

Basic Info
  • Host: GitHub
  • Owner: r-lib
  • License: other
  • Language: R
  • Default Branch: main
  • Homepage: https://httr.r-lib.org
  • Size: 7.07 MB
Statistics
  • Stars: 987
  • Watchers: 57
  • Forks: 1,974
  • Open Issues: 7
  • Releases: 19
Topics
api curl http r
Created over 14 years ago · Last pushed over 1 year ago
Metadata Files
Readme Changelog Contributing License Code of conduct Support

README.md

httr

Status

Lifecycle: superseded

httr is superseded: only changes necessary to keep it on CRAN will be made. We recommend using httr2 instead.


CRAN status R-CMD-check Codecov test coverage <!-- badges: end -->

The aim of httr is to provide a wrapper for the curl package, customised to the demands of modern web APIs.

Key features:

  • Functions for the most important http verbs: GET(), HEAD(), PATCH(), PUT(), DELETE() and POST().

  • Automatic connection sharing across requests to the same website (by default, curl handles are managed automatically), cookies are maintained across requests, and a up-to-date root-level SSL certificate store is used.

  • Requests return a standard reponse object that captures the http status line, headers and body, along with other useful information.

    • Response content is available with content() as a raw vector (as = "raw"), a character vector (as = "text"), or parsed into an R object (as = "parsed"), currently for html, xml, json, png and jpeg.
    • You can convert http errors into R errors with stop_for_status().
  • Config functions make it easier to modify the request in common ways: set_cookies(), add_headers(), authenticate(), use_proxy(), verbose(), timeout(), content_type(), accept(), progress().

  • Support for OAuth 1.0 and 2.0 with oauth1.0_token() and oauth2.0_token(). The demo directory has eight OAuth demos: four for 1.0 (twitter, vimeo, withings and yahoo) and four for 2.0 (facebook, github, google, linkedin). OAuth credentials are automatically cached within a project.

httr wouldn't be possible without the hard work of the authors of curl and libcurl. Thanks! httr is inspired by http libraries in other languages, such as Resty, Requests and httparty.

Installation

To get the current released version from CRAN:

R install.packages("httr")

To get the current development version from github:

```R

install.packages("pak")

pak::pak("r-lib/httr") ```

Code of Conduct

Please note that the httr project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

Owner

  • Name: R infrastructure
  • Login: r-lib
  • Kind: organization

GitHub Events

Total
  • Issues event: 8
  • Watch event: 11
  • Issue comment event: 7
  • Fork event: 3
Last Year
  • Issues event: 8
  • Watch event: 11
  • Issue comment event: 7
  • Fork event: 3

Committers

Last synced: 8 months ago

All Time
  • Total Commits: 965
  • Total Committers: 76
  • Avg Commits per committer: 12.697
  • Development Distribution Score (DDS): 0.23
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
hadley h****m@g****m 743
Jenny Bryan j****n@g****m 21
Nathan Goulding n****g@p****o 20
Jeroen Ooms j****s@g****m 16
Craig Citro c****o@g****m 13
Jean-Olivier Irisson i****n@n****g 12
jennybc j****y@s****a 11
Jim Hester j****r@g****m 10
Bogstag k****r@b****e 9
Daniel Lockau d****u@m****m 6
Carl Boettiger c****g@g****m 5
Christophe Dervieux c****x@g****m 5
Mara Averick m****k@g****m 5
Gabor Csardi c****r@g****m 4
Artem Klevtsov a****v@g****m 4
Nicolas Coutin n****n 4
Graham Parsons g****m@g****m 4
Martin Morgan m****n@f****g 3
antoine.lizee a****e@g****m 3
Willem Paling w****g@g****m 2
RobertZK t****b@g****m 2
John Muschelli m****2@g****m 2
Charles Hans Thompson h****1@g****m 2
Brent Brewington b****n@g****m 2
Bob Rudis b****b@r****t 2
Kirill Müller k****r@i****h 2
Siddhartha Bagaria s****b@g****m 2
rstudio r****o@e****m 2
i i****s@s****g 2
Paul Garnes p****s@g****m 1
and 46 more...

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 116
  • Total pull requests: 37
  • Average time to close issues: almost 2 years
  • Average time to close pull requests: over 1 year
  • Total issue authors: 100
  • Total pull request authors: 30
  • Average comments per issue: 2.76
  • Average comments per pull request: 2.14
  • Merged pull requests: 11
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 10
  • Pull requests: 2
  • Average time to close issues: 20 days
  • Average time to close pull requests: 12 minutes
  • Issue authors: 10
  • Pull request authors: 2
  • Average comments per issue: 0.9
  • Average comments per pull request: 0.5
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • hadley (8)
  • jennybc (7)
  • dmi3kno (2)
  • timwilliate (2)
  • llrs (1)
  • ezpzlmnsqzy2 (1)
  • salim-b (1)
  • rkrug (1)
  • vjcitn (1)
  • ksonda (1)
  • maheshrapaka (1)
  • guillecarc (1)
  • rafapereirabr (1)
  • kongdd (1)
  • futscience0 (1)
Pull Request Authors
  • hadley (4)
  • jennybc (3)
  • ghost (2)
  • jeroen (2)
  • Mike-Hanna (2)
  • schloerke (1)
  • JoshFeldman95 (1)
  • patr1ckm (1)
  • jameslamb (1)
  • jobdiogenes (1)
  • MichaelChirico (1)
  • denrou (1)
  • s-u (1)
  • gaborcsardi (1)
  • atheriel (1)
Top Labels
Issue Labels
feature (10) oauth :ping_pong: (5) bug (4) robustness :rescue_worker_helmet: (4) documentation (3) help wanted :heart: (1) upkeep (1)
Pull Request Labels

Packages

  • Total packages: 3
  • Total downloads:
    • cran 1,098,058 last-month
  • Total docker downloads: 125,185,962
  • Total dependent packages: 1,425
    (may contain duplicates)
  • Total dependent repositories: 6,299
    (may contain duplicates)
  • Total versions: 44
  • Total maintainers: 1
cran.r-project.org: httr

Tools for Working with URLs and HTTP

  • Versions: 22
  • Dependent Packages: 1,296
  • Dependent Repositories: 6,238
  • Downloads: 1,098,058 Last month
  • Docker Downloads: 125,185,962
Rankings
Forks count: 0.0%
Dependent repos count: 0.1%
Dependent packages count: 0.1%
Downloads: 0.2%
Stargazers count: 0.3%
Average: 3.0%
Docker downloads count: 17.3%
Maintainers (1)
Last synced: 6 months ago
proxy.golang.org: github.com/r-lib/httr
  • Versions: 15
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Forks count: 0.7%
Stargazers count: 2.2%
Average: 3.6%
Dependent packages count: 5.5%
Dependent repos count: 5.9%
Last synced: 6 months ago
conda-forge.org: r-httr
  • Versions: 7
  • Dependent Packages: 129
  • Dependent Repositories: 61
Rankings
Dependent packages count: 0.6%
Forks count: 2.8%
Dependent repos count: 4.5%
Average: 5.2%
Stargazers count: 13.0%
Last synced: 6 months ago

Dependencies

.github/workflows/R-CMD-check.yaml actions
  • actions/checkout v3 composite
  • r-lib/actions/check-r-package v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/pkgdown.yaml actions
  • JamesIves/github-pages-deploy-action v4.4.1 composite
  • actions/checkout v3 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/pr-commands.yaml actions
  • actions/checkout v3 composite
  • r-lib/actions/pr-fetch v2 composite
  • r-lib/actions/pr-push v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/test-coverage.yaml actions
  • actions/checkout v3 composite
  • actions/upload-artifact v3 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
DESCRIPTION cran
  • R >= 3.5 depends
  • R6 * imports
  • curl >= 3.0.0 imports
  • jsonlite * imports
  • mime * imports
  • openssl >= 0.8 imports
  • covr * suggests
  • httpuv * suggests
  • jpeg * suggests
  • knitr * suggests
  • png * suggests
  • readr * suggests
  • rmarkdown * suggests
  • testthat >= 0.8.0 suggests
  • xml2 * suggests