A Native Lazy Analytical Backend for MongoDB
Overview
Provides a disciplined, lazy subset of 'dplyr' semantics for MongoDB aggregation pipelines. Queries remain lazy until collect() and compile into MongoDB-native aggregation stages.
This is a bug-fix release. All four issues were found by running mdbplyr
against a live MongoDB server rather than only against mocked collections, and
each is covered by a new regression test.
Bug fixes
- Fixed
filter()with multiple predicates (e.g.filter(cond1, cond2)) compiling$andas a JSON object with numeric-string keys instead of an array, which MongoDB silently treated as a no-op filter. - Fixed
is.na()compiling to a bare$eqagainstnull, which does not match a genuinely missing field under MongoDB's$exprsemantics; it now compiles through$ifNullfirst. - Fixed comparisons (
<,<=,>,>=,!=),!, andif_else()matching rows with a missing operand, because BSON sort order places missing/null below every number. Comparisons involving a field now compile with anNA-propagation guard so they drop or returnNAfor missing values the same waydplyrdoes.
Show all changes in 0.4.1Hide the rest of the changes in 0.4.1
- Fixed
unwind_array()andflatten_fields()rejecting a nested array root (e.g.message.measurements) thatinfer_schema()only ever registers through its scalar leaves (message.measurements.Fxand so on). Both now resolve such paths directly, matchingselect()'s existing support for nested root paths.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK6 OK2026-04-23
Documentation
- Help pages
- 23 (1 internal)includes a package overview page
- Examples that run
- 100%19 run in a plain check
- Exported functions with examples
- 86%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
- Using mdbplyr HTML
Downloads
Dependencies
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 0.4.1Latest
- 0.4.02026-06-25 · diff ↗ ·
added 5 exports
anti_join.tbl_mongo, inner_join.tbl_mongo, left_join.tbl_mongo, mongo_server_version, semi_join.tbl_mongo - RR 4.6.0 released · 2026-04-24
- 0.3.02026-04-22
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2026-04-22
- Total releases
- 3 / 1 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.2.0
- Download size
- 82 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("mdbplyr")The package provides a citation file, so citation() returns the authors' own entry.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.