R Observatory
Search
install.packages("httptest2")
CRAN checks, method
OKnotes on 5 of 13
CRAN 30-day downloads, method
4,006−8% down on the 30 days before, the worse direction
Dependent packages, method
079 more suggest it
Test coverage, method
99.4%of lines run by tests

Testing and documenting code that communicates with remote servers can be painful. This package helps with writing tests for packages that use 'httr2'.

Full description

Testing and documenting code that communicates with remote servers can be painful. This package helps with writing tests for packages that use 'httr2'. It enables testing all of the logic on the R sides of the API without requiring access to the remote service, and it also allows recording real API responses to use as test fixtures. The ability to save responses and load them offline also enables writing vignettes and other dynamic documents that can be distributed without access to a live server.

Maintainer
Neal Richardson
Latest release
16 Nov 2025
First release
10 Jan 2022

Compare with another package

More details
Releases
6
Needs compilation
No
Config/testthat/edition
3
Language
en-US
RoxygenNote
7.3.3
Task views (1)
Subjects (1) Method, Subjects
Cite

Package

Run in R for the authors' preferred citation:

citation("httptest2")
APA
Richardson, N., Keane, J., & Salmon, M. (2025). httptest2: Test Helpers for 'httr2' (Version 1.2.2) [Computer software]. https://doi.org/10.32614/CRAN.package.httptest2
About

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA
Balamuta, J. J. (2026). R Observatory: Metrics for httptest2 version 1.2.2 [Data set]. HJJB, LLC. Data release v2026-10-31. https://doi.org/10.5281/zenodo.21843040
About

From data release v2026-10-31, which the citation names so these numbers can be found later.

No warnings or errors. 5 of 13 check platforms have notes.

  • r-devel-linux-x86_64-debian-clang

    The unreleased R on Linux, x86_64, debian-clang

    Note

    Version checked
    1.2.2
    Time taken
    64 s

    R code for possible problems: Note

    Found calls to structure() using deprecated special names:

    Full output

  • r-devel-linux-x86_64-debian-gcc

    The unreleased R on Linux, x86_64, debian-gcc

    Note

    Version checked
    1.2.2
    Time taken
    50 s

    R code for possible problems: Note

    Found calls to structure() using deprecated special names:

    Full output

  • r-devel-linux-x86_64-fedora-clang

    The unreleased R on Linux, x86_64, fedora-clang

    Note

    Version checked
    1.2.2
    Time taken
    46 s

    R code for possible problems: Note

    Found calls to structure() using deprecated special names:

    Full output

  • r-devel-linux-x86_64-fedora-gcc

    The unreleased R on Linux, x86_64, fedora-gcc

    Note

    Version checked
    1.2.2
    Time taken
    48 s

    R code for possible problems: Note

    Found calls to structure() using deprecated special names:

    Full output

  • r-devel-windows-x86_64

    The unreleased R on Windows, x86_64

    Note

    Version checked
    1.2.2
    Time taken
    94 s

    R code for possible problems: Note

    Found calls to structure() using deprecated special names:

    Full output

  • r-oldrel-macos-arm64

    The previous release of R on macOS, arm64

    OK

    Version checked
    1.2.1
    Time taken
    21 s
  • r-oldrel-macos-x86_64

    The previous release of R on macOS, x86_64

    OK

    Version checked
    1.2.2
    Time taken
    69 s
  • r-oldrel-windows-x86_64

    The previous release of R on Windows, x86_64

    OK

    Version checked
    1.2.2
    Time taken
    96 s
  • r-patched-linux-x86_64

    The patched release of R on Linux, x86_64

    OK

    Version checked
    1.2.2
    Time taken
    58 s
  • r-release-linux-x86_64

    The current release of R on Linux, x86_64

    OK

    Version checked
    1.2.2
    Time taken
    58 s
  • r-release-macos-arm64

    The current release of R on macOS, arm64

    OK

    Version checked
    1.2.2
    Time taken
    22 s
  • r-release-macos-x86_64

    The current release of R on macOS, x86_64

    OK

    Version checked
    1.2.2
    Time taken
    85 s
  • r-release-windows-x86_64

    The current release of R on Windows, x86_64

    OK

    Version checked
    1.2.2
    Time taken
    89 s
  • 5 Note
  • 8 OK
Check output (1)

R code for possible problems, Note on 5 platforms

Found calls to structure() using deprecated special names:
  httptest2/R/content-type.R (.Names: 1)
'.Names' should be changed to 'names'.

Over time

No change since 16 Jul 2026

As a list (2)
ChangedWorst statusOKNotesWarningsErrors
16 Jul 2026Note11200
10 Mar 2026OK14000

Since March 2026

Check results on CRAN

Total downloads in the last 30 days
4,265−3.8% down on the 30 days before, the worse directionIt is the sum of 3 channels: CRAN, r2u and autoCRAN.

CRAN rank

1,745 of 26,598

CRAN

4,006 downloads in the last 30 days

Rank
1,745 of 26,598
Change
−8% down on the 30 days before, the worse direction

It is in the total. Take it out

r2u

252 downloads in the last 30 days

Rank
1,543 of 30,526
Change
+255% up on the 30 days before, the better direction

It is in the total. Take it out

autoCRAN

7 downloads in the last 30 days

Rank
7,704 of 29,272
Change
−22.2% down on the 30 days before, the worse direction

It is in the total. Take it out

Over time

Compare downloads

Needs
7
Dependent packages
0
Suggested by
79
Needs (7)
Installing it adds
31 packages, 9.9 MB of source
Of those, need compilation
17
Optional extras (7)
Functions
65
Public exports
31
Lines of R code
1,525
Median complexity
2
Functions (65)
Size and composition

Lines by kind (5,407)

KindLinesShare
R code1,52528%
Tests2,29943%
Documentation92217%
Guides66112%

Lines by language

LanguageLinesShare
R3,75870%
Rd92217%
Vignettes66112%
JSON310.6%
Markdown310.6%
Other40.1%

Languages are counted from file extensions.

Files
96
R functions
65
Object systems
S3: 3 methods
Complexity
Median
2
Mean
2.37
Highest
12
Median lines per function
8
About complexity

Cyclomatic complexity counts the independent paths through a function: 1 is a straight line, higher is harder to test. R functions only.

Call graph figures
R functions
65
Calls
77
Unconnected
7
Groups
4
Growth (6 releases)
Total lines by release
4,879 on 10 Jan 20225,407 on 16 Nov 2025
Release changes

The tests ran and coverage was measured.

Lines run by tests
99.4%
Expressions run by tests
99.1%
Test cases
95
Exports named in tests
93.5%
Coverage by file (14)
Coverage run
Lines counted
464
Lines the tests ran
461
Tests passed
Yes
Measured with
covr 3.6.5 on R 4.6.1
Test suite
Has tests
Yes
Test frameworks
testthat
Test cases
95
Snapshot tests
2
Lines of tests
2,299
Test lines per line of code
1.51
Exports documented
100%
Arguments documented
97.9%
Return value documented
94.4%
Help pages with examples
35%
Examples run in checks
100%
Guides (4)
Other documentation
README
Yes, 327 words
Release notes file
Yes
Help pages
20
Lines of documentation
922

nealrichardson / httptest2 on github.com

Stars
36no change on 30 days ago
Forks
4
Open issues
9
Last commit
25 Jun 2026
Activity
Commits
309
Open pull requests
1
Tagged releases
6
Latest tagged release
1.2.2, 16 Nov 2025
In development
Default branch at 1.2.2.9000, ahead of CRAN 1.2.2 (checked 2026-10-25)
Issues closed in
7 days (median)
Pull requests closed in
0 days (median)
Pull requests merged
96%
Created
28 Nov 2021
Licence file reads as
–
Development practices (6)
KindFound
Continuous integrationGitHub Actions, R CMD check workflow
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Docs sourcepkgdown
GitHub Pages site last deployed 2026-06-25
The repository has a site deploy workflow
pkgdown site last built 2026-06-25
Reproducibility and dev environmentMakefile

Method, repository practices

Across nealrichardson

R releases
  • On CRAN
  • Release
VersionReleasedR
1.2.2 current16 Nov 20254.5.2
1.2.127 Jul 20254.5.1
1.2.027 Jun 20254.5.1
1.1.026 Apr 20244.4.0
1.0.07 Nov 20234.3.2
0.1.010 Jan 20224.1.2
Release notes (1.2.2)
  • Compatibility with testthat 3.3.0