HTTP Client
Overview
A simple HTTP client, with tools for making HTTP requests, and mocking HTTP requests. The package is built on R6, and takes inspiration from Ruby's 'faraday' gem (https://rubygems.org/gems/faraday). The package name is a play on curl, the widely used command line tool for HTTP, and this package is built on top of the R package 'curl', an interface to 'libcurl' (https://curl.se/libcurl/).
NEW FEATURES
- generic mocking is now controlled in each HTTP client (
HttpClient,Async, andAsyncVaried) via an initialization parameterAsyncVariedor through each HTTP class method (e.g.,get,postonHttpClient,Async). mocking used to be tied towebmockrbut now can be controlled independently (#184)
DEPRECATED
mock()is deprecated, and will be removed in a future version. Mocking is now controlled by parameters within the various HTTP clients:HttpClient,Async, andAsyncVaried(#184)
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK14 OK2026-03-10
Documentation
- Help pages
- 30 (1 internal)includes a package overview page
- Examples that run
- 35%9 run in a plain check (3 of them under a condition) · 17 never run
- Exported functions with examples
- 88%
- Documented parameters
- 100%
- Return-value docs
- 38%
- Help pages citing references
- 23%
Downloads
Repository
- PRs merged (all time)
- 97%
- Median days to close, 50 most recently updated closed issues
- 30
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
14 development-tooling and community-health practices detected across 7 families in the upstream repository
Checks run against github.com/ropensci/crul on 2026-10-22.
The R CMD check workflow runs on Linux and Windows, and on R-devel
GitHub Pages site last deployed 2019-11-22
Show all practicesHide 3 practices
Dependencies
Installing crul adds 11 packages (8 with compiled code, 5.2 MB of source tarballs). Heaviest: Rcpp 1.8 MB, jsonlite 1.0 MB, rlang 766 KB.
Show all 47 packagesHide all 47 packages
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 1.6.0Latest
- RR 4.5.0 released · 2025-04-11
- 1.5.02024-07-19 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 1.4.22024-04-09 · diff ↗
- 1.4.02023-05-17 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 1.32022-09-03 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 1.2.02021-11-22 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 1.1.02021-02-15 · diff ↗
- 1.0.0
- RR 4.0.0 released · 2020-04-24
- 0.9.02019-11-06 · diff ↗
Show 19 earlier eventsHide 19 earlier events
- 0.8.42019-08-02 · diff ↗
- 0.8.02019-06-28 · diff ↗
- RR 3.6.0 released · 2019-04-26
- 0.7.42019-03-28 · diff ↗
- 0.7.0
- 0.6.0
- RR 3.5.0 released · 2018-04-23
- 0.5.22018-02-24 · diff ↗
- 0.5.0
- 0.4.0
- 0.3.82017-06-15 · diff ↗
- 0.3.6
- RR 3.4.0 released · 2017-04-21
- 0.3.4
- 0.3.0
- 0.2.02017-01-03 · diff ↗
- 0.1.62016-12-17 · diff ↗
- 0.1.02016-11-09
- RR 3.3.0 released · 2016-05-03
Package metadata
- First published
- 2016-11-09
- Total releases
- 24 / 10 yrs
- License
- MIT + file LICENSE OSI
- Download size
- 519 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("crul")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.