Skip to content

crul

HTTP Client

v1.6.0 · Jul 23, 2025 · MIT + file LICENSE

Description

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/>).

Downloads

CRAN

23.5K

Last 30 days

747th

78K

Last 90 days

385.5K

Last year

Trend: -17.3% (30d vs prior 30d)

r2u CRAN

241

Last 30 days

1.1K

Last 90 days

5K

Last year

Trend: -38.8% (30d vs prior 30d)

autoCRAN

23

Last 7 days

229

Last 30 days

7

All-time

⚠ Shared name: this package is also shipped elsewhere on openSUSE, so this count is not exclusive to autoCRAN (it is an upper bound).

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
ERROR r-devel-linux-x86_64-debian-gcc

examples

Running massageExamples to create ‘crul-Ex.R’ failed
Error in file(out, "wt") : cannot open the connection
Calls: <Anonymous> -> Rd2ex -> file
In addition: Warning message:
In file(out, "wt") :
  cannot open file '/tmp/Rtmpmn9ESk/file3c81be5c802800/HttpRequest.R': No space left on device
Execution halted
 NONE
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

15,924

Files

134

Compiled share

0%

Has compiled src

No

Language breakdown

R 5,071 (31.8%)Tests 3,634 (22.8%)Docs 4,759 (29.9%)Vignettes 2,460 (15.4%)

API

Exported functions

22

Internal functions

52

Testing & CI

Has tests

Yes

Test-to-code ratio

0.72

testthat edition

3

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

37.5%

\dontrun example ratio

61.5%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

0%

Unsafe pattern score

0

Dep constraint coverage

50%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

System requirements

C++ standard

License

MIT + file LICENSE

License flags

SPDX valid, OSI approved

History

Versions

24

First release

2016-11-09

Latest release

2025-07-23

Avg cadence

101 days

Cold removal rate

100%

Dep drift

4

LOC over versions

v0.1.0: 1,111 LOCv0.1.6: 1,351 LOCv0.2.0: 1,829 LOCv0.3.0: 3,212 LOCv0.3.4: 3,832 LOCv0.3.6: 4,681 LOCv0.3.8: 4,729 LOCv0.4.0: 4,978 LOCv0.5.0: 5,734 LOCv0.5.2: 5,920 LOCv0.6.0: 7,349 LOCv0.7.0: 9,236 LOCv0.7.4: 9,744 LOCv0.8.0: 9,800 LOCv0.8.4: 9,836 LOCv0.9.0: 10,355 LOCv1.0.0: 14,132 LOCv1.1.0: 14,427 LOCv1.2.0: 14,656 LOCv1.3: 14,653 LOCv1.4.0: 14,836 LOCv1.4.2: 14,668 LOCv1.5.0: 14,795 LOCv1.6.0: 15,924 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Reverse Dependencies (47)

Dependency Network

Dependencies Reverse dependencies curl R6 urltools httpcode jsonlite mime rlang lifecycle bcdata citecorp ckanr codemetar duckduckr elastic geojsonio gfonts ghql gistr handlr hereR magmaR nasapower natserv +32 more reverse deps crul

Version History

25 tracked
new 1.6.0 Mar 10, 2026
updated 1.6.0 ← 1.5.0 diff Jul 22, 2025
updated 1.5.0 ← 1.4.2 diff Jul 18, 2024
updated 1.4.2 ← 1.4.0 diff Apr 8, 2024
updated 1.4.0 ← 1.3 diff May 16, 2023
updated 1.3 ← 1.2.0 diff Sep 2, 2022
updated 1.2.0 ← 1.1.0 diff Nov 21, 2021
updated 1.1.0 ← 1.0.0 diff Feb 14, 2021
updated 1.0.0 ← 0.9.0 diff Jul 29, 2020
updated 0.9.0 ← 0.8.4 diff Nov 5, 2019
updated 0.8.4 ← 0.8.0 diff Aug 1, 2019
updated 0.8.0 ← 0.7.4 diff Jun 27, 2019
updated 0.7.4 ← 0.7.0 diff Mar 27, 2019
updated 0.7.0 ← 0.6.0 diff Jan 3, 2019
updated 0.6.0 ← 0.5.2 diff Jul 9, 2018