Skip to content

mdbplyr

0.4.1Package record

A Native Lazy Analytical Backend for MongoDB

0packages depend
1.9Kdownloads / year
84.7%test coverage
13/13flavors OK

Overview

About

Provides a disciplined, lazy subset of 'dplyr' semantics for MongoDB aggregation pipelines. Queries remain lazy until collect() and compile into MongoDB-native aggregation stages.

Changes in 0.4.1

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 $and as 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 $eq against null, which does not match a genuinely missing field under MongoDB's $expr semantics; it now compiles through $ifNull first.
  • Fixed comparisons (<, <=, >, >=, !=), !, and if_else() matching rows with a missing operand, because BSON sort order places missing/null below every number. Comparisons involving a field now compile with an NA-propagation guard so they drop or return NA for missing values the same way dplyr does.
Show all changes in 0.4.1Hide the rest of the changes in 0.4.1
  • Fixed unwind_array() and flatten_fields() rejecting a nested array root (e.g. message.measurements) that infer_schema() only ever registers through its scalar leaves (message.measurements.Fx and so on). Both now resolve such paths directly, matching select()'s existing support for nested root paths.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 2.2 min · r-oldrel-macos-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK6 OK2026-04-23
Advisories

none known

Documentation

In release 0.4.1
READMENoVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 0.4.1Citation fileYes · software entry onlyWebsitenot declared in DESCRIPTION
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%
Vignettes (1)

Downloads

1.9K
CRAN downloads in the past year
Rank #19,909 · ~5/day · ~161/mo
Daily download trend is not available in this view yet.
24130 days
65290 days
1.9K1 year
Compare downloads with other packages →
Also on65 r2u6 autocran

Dependencies

Declared dependencies
10 external dependencies (excludes base and recommended)

Installing mdbplyr adds 16 packages (10 with compiled code, 6.2 MB of source tarballs). Heaviest: jsonlite 1.0 MB, vctrs 1.0 MB, dplyr 902 KB.

Depends (1)
R >= 4.2.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (1)
Author, Maintainer since 0.3.0 (2026)
Releases (3)

Pick two releases to compare their code metrics.

  • 0.4.1Latest
    record
    2026-07-10 · current release · diff ↗
  • 0.4.0
    record
    2026-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
  • R
    R 4.6.0 released · 2026-04-24
  • 0.3.0
    record
    2026-04-22
  • R
    R 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
Appears in task views

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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for mdbplyr version 0.4.1 [Data set]. HJJB, LLC. Data release v2026-10-18. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy