← Back to home
Comparison · Analytics

webmockr vs xplainfi

A side-by-side editorial comparison of webmockr and xplainfi — release velocity, themes, recent moves, and the top alternatives to consider.

webmockr vs xplainfi: at a glance

Featurewebmockrxplainfi
SectorAnalyticsAnalytics
Velocity score0.02.5
Sparks · 30d00
Top themeshttp-mocking, testing, httr2, ropenscimlr3, feature-importance, interpretability, statistical-inference
Last editorial update1h ago7h ago
WebsiteVisit →Visit →

What is webmockr?

The stubbing library added httr2 support, then spent a year cutting itself free of everything else

webmockr intercepts HTTP requests in R tests and returns stubbed responses, and since 1.0.0 it covers all three clients that matter — httr, httr2 and crul. The releases through 2025 have been about shedding dependencies: internal R6 classes unexported in 2.1.0, crul demoted from Imports to Suggests in the same release, and the mutual dependency with vcr severed in 2.2.0. The package now installs and runs without pulling in the rest of the rOpenSci HTTP stack.

Read the full webmockr trajectory →

What is xplainfi?

xplainfi treats feature importance as an estimate with error bars, not a number.

xplainfi implements feature importance methods for mlr3 — perturbation-based PFI, CFI and RFI, refit-based LOCO and WVIM, and SAGE. Its defining choice is that importance scores come with inference attached: several confidence-interval methods, including the Nadeau-Bengio correction and a distribution-free option added in 1.1.0. It declared itself released at 1.0.0 in January 2026.

Read the full xplainfi trajectory →

webmockr vs xplainfi: editorial side-by-side

W
webmockr
ANALYTICS
0.0

The stubbing library added httr2 support, then spent a year cutting itself free of everything else

◆ Current state

webmockr intercepts HTTP requests in R tests and returns stubbed responses, and since 1.0.0 it covers all three clients that matter — httr, httr2 and crul. The releases through 2025 have been about shedding dependencies: internal R6 classes unexported in 2.1.0, crul demoted from Imports to Suggests in the same release, and the mutual dependency with vcr severed in 2.2.0. The package now installs and runs without pulling in the rest of the rOpenSci HTTP stack.

◆ Where it's heading

Two arcs run in sequence. The first is coverage — multiple queued responses in 0.7.0, basic auth mocking, async through crul, then httr2 — building out what can be stubbed. The second, starting with 2.0.0, is correctness and independence: stubs are now deleted if an error occurs mid-construction rather than lingering half-built, partial matching arrives for bodies and queries, and the dependency graph is pruned release by release. The 2.2.0 split from vcr landed within a minute of crul's release taking mocking control into its own clients.

◆ Prediction

RequestPattern is documented as still exported in 2.1.0 but slated for removal, so the next major release is where that lands. Expect continued dependency pruning rather than new client support — the three clients that exist are already covered.

X
xplainfi
ANALYTICS
2.5

xplainfi treats feature importance as an estimate with error bars, not a number.

◆ Current state

xplainfi implements feature importance methods for mlr3 — perturbation-based PFI, CFI and RFI, refit-based LOCO and WVIM, and SAGE. Its defining choice is that importance scores come with inference attached: several confidence-interval methods, including the Nadeau-Bengio correction and a distribution-free option added in 1.1.0. It declared itself released at 1.0.0 in January 2026.

◆ Where it's heading

Two lines of work run in parallel. The statistical side keeps adding inference options — variance corrections, conditional predictive impact, and the Lei et al. observation-wise loss-difference test — while the computational side attacks the cost of refit-based methods, most recently with a batch_size argument that parallelises refits and a default of one refit per resampling iteration. Support for pre-trained learners in 1.1.0 removes the refit requirement entirely in some workflows.

◆ Prediction

The stated reasoning that budget is better spent on resampling iterations than repeated refits suggests n_repeats may be removed from WVIM and LOCO outright, as the release notes hint.

Alternatives to webmockr and xplainfi

Other Analytics products tracked by Sparkpulse, ranked by recent ship velocity. Each card links to a full editorial trajectory and lets you pivot into a head-to-head comparison with either webmockr or xplainfi.

See all webmockr alternatives → · See all xplainfi alternatives →

Recent activity from webmockr and xplainfi

Latest ship moves from both products, interleaved chronologically. ⚡ = editorial spark.

  1. 21d agoxplainfiRefits parallelise; repeated refits deprioritised in favour of resampling
  2. 5mo agoxplainfiPre-trained learners supported; distribution-free inference added
  3. 6mo agoxplainfiVersion bumped to mark the package as released
  4. 9mo agoxplainfiConfidence intervals arrive for feature importance scores
  5. 1y agowebmockrvcr dependency severed
  6. 1y agowebmockrInternal classes unexported; crul becomes an optional dependency
  7. 1y agowebmockrFailed stub construction cleans up; partial matching extends to bodies and queries
  8. 2y agowebmockrhttr2 joins httr and crul as a supported client
  9. 3y agowebmockrQueued responses, body matching and integer status codes fixed
  10. 3y agowebmockrRegex URI matching fixed

Frequently asked questions

What is the difference between webmockr and xplainfi?

They serve adjacent needs but don't currently overlap on shipped themes. xplainfi is currently shipping more aggressively (velocity 2.5 vs 0.0), with 0 editorial sparks in the last 30 days against 0. See the at-a-glance table above for a side-by-side breakdown of velocity, recent sparks, and editorial themes.

Is webmockr better than xplainfi?

Sparkpulse doesn't pick a winner — we score release velocity, not feature parity. xplainfi is currently shipping more aggressively (velocity 2.5 vs 0.0), with 0 editorial sparks in the last 30 days against 0. For your specific use case, the alternatives sections above list other Analytics products to evaluate alongside.

What are the best alternatives to webmockr?

Top webmockr alternatives in Analytics are ranked by recent ship velocity. Browse the "webmockr alternatives" section above for the current picks, or visit /alternatives/webmockr for the full list with editorial commentary on each.

What are the best alternatives to xplainfi?

Top xplainfi alternatives in Analytics are ranked by recent ship velocity. Browse the "xplainfi alternatives" section above for the current picks, or visit /alternatives/xplainfi for the full list with editorial commentary on each.