A Test Environment for Database Requests
Overview
Testing and documenting code that communicates with remote databases can be painful. Although the interaction with R is usually relatively simple (e.g. data(frames) passed to and from a database), because they rely on a separate service and the data there, testing them can be difficult to set up, unsustainable in a continuous integration environment, or impossible without replicating an entire production cluster. This package addresses that by allowing you to make recordings from your database interactions and then play them back while testing (or in other contexts) all without needing to spin up or have access to the database your code would typically connect to.
- Established compatibility with DBI 1.3.0 (#197)
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
- 27 (16 internal)
- Examples that run
- 71%10 run in a plain check · 3 only when donttest examples are enabled (R CMD check --as-cran) · 1 never run
- Exported functions with examples
- 54%
- Documented parameters
- 100%
- Return-value docs
- 88%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 97%
- Median days to close, 50 most recently updated closed issues
- 8
- Median days to close, 50 most recently updated closed PRs
- 1
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
15 development-tooling and community-health practices detected across 8 families in the upstream repository
Checks run against github.com/ropensci/dittodb on 2026-10-21.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-02-24 · The repository has a site deploy workflow
pkgdown site last built 2026-02-24
Show all practicesHide 4 practices
Dependencies
Installing dittodb adds 6 packages (4 with compiled code, 2.5 MB of source tarballs). Heaviest: rlang 766 KB, DBI 727 KB, cli 629 KB.
Code & Tests
People & History
Package metadata
- First published
- 2020-07-24
- Total releases
- 12 / 6 yrs
- License
- Apache License (>= 2.0)
- Minimum R
- ≥ 3.3.0
- Download size
- 193 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("dittodb")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.