← Back to home
Comparison · Infra & APIs

doctest vs g6R

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

doctest vs g6R: at a glance

Featuredoctestg6R
SectorInfra & APIsInfra & APIs
Velocity score3.82.5
Sparks · 30d10
Top themesr-packages, testing, documentation, distributionr-graphics, htmlwidgets, graph-visualization, shiny
Last editorial update1h ago1h ago
WebsiteVisit →Visit →

What is doctest?

doctest is leaving CRAN: 0.4.1 is the last release through R's default channel.

doctest lets R package authors write tests inline with documentation examples, generating .Rd content and test files from the same source. The current release is a small bugfix, removing empty lines that @testraw was producing in generated .Rd files. Feature work has been quiet, with the two most recent entries both correcting artifacts in generated output rather than adding capability.

Read the full doctest trajectory →

What is g6R?

An R binding whose releases are mostly the upstream JS graph engine arriving, plus port ergonomics.

g6R wraps AntV's G6 graph engine as an htmlwidget, with Shiny proxy functions for data updates, layout control and mouse position read-back. The current release bundles G6 5.1.1 and ships the widget as a single self-contained bundle, having removed the split chunk. Recent work has concentrated on ports, the connection points nodes expose, with a new label-bottom placement, a larger default radius and a quieter hover state.

Read the full g6R trajectory →

doctest vs g6R: editorial side-by-side

D
doctest
INFRA · APIS
3.8

doctest is leaving CRAN: 0.4.1 is the last release through R's default channel.

◆ Current state

doctest lets R package authors write tests inline with documentation examples, generating .Rd content and test files from the same source. The current release is a small bugfix, removing empty lines that @testraw was producing in generated .Rd files. Feature work has been quiet, with the two most recent entries both correcting artifacts in generated output rather than adding capability.

◆ Where it's heading

The direction is distribution, not features. The last release states plainly that future versions will ship as GitHub releases or through r-universe.dev, so the package is stepping outside CRAN while continuing to be developed. Read with 0.4.0, which suppressed Source line output so example edits stop producing irrelevant test churn, the recent work is about generated output being stable and predictable.

◆ Prediction

The next versions should appear on GitHub and r-universe rather than CRAN, which means users on a CRAN-only install policy stay on 0.4.1 indefinitely. What the freedom from CRAN's review cycle gets spent on is not indicated in these entries.

G
g6R
INFRA · APIS
2.5

An R binding whose releases are mostly the upstream JS graph engine arriving, plus port ergonomics.

◆ Current state

g6R wraps AntV's G6 graph engine as an htmlwidget, with Shiny proxy functions for data updates, layout control and mouse position read-back. The current release bundles G6 5.1.1 and ships the widget as a single self-contained bundle, having removed the split chunk. Recent work has concentrated on ports, the connection points nodes expose, with a new label-bottom placement, a larger default radius and a quieter hover state.

◆ Where it's heading

Two threads run through the record. One is upstream tracking: the 0.6.5 engine bump alone restored the SVG renderer, fixed a combo-related canvas crash and pulled in new node and edge query APIs, which is a lot of user-visible change that this package did not author. The other is R-side ergonomics, where ports have been reworked in three consecutive releases and 0.5.0 added data validation strict enough that the notes warn existing code may break. Layout behaviour has moved toward explicit control, with recomputation now opt-in via an option and a dedicated proxy function.

◆ Prediction

The port work looks unfinished given three releases in a row on it, so more placement and styling options are the likeliest next step, alongside another engine bump as G6 5.1.x moves. Nothing in these entries indicates a direction beyond keeping pace with upstream.

Alternatives to doctest and g6R

Other Infra & APIs 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 doctest or g6R.

See all doctest alternatives → · See all g6R alternatives →

Recent activity from doctest and g6R

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

  1. 13d agog6RG6 engine bumped to 5.1.1; port placement, size and hover reworked
  2. 17d agodoctestLast CRAN release; development moves to GitHub and r-universe
  3. 3mo agog6REnhanced and subtle ports, collapsible nodes, bslib tooltip fix
  4. 5mo agodoctestStops emitting Source line into generated tests
  5. 8mo agog6RSVG renderer option, data validation, and explicit layout control
  6. 1y agog6Rg6R 0.1.0

Frequently asked questions

What is the difference between doctest and g6R?

They serve adjacent needs but don't currently overlap on shipped themes. doctest is currently shipping more aggressively (velocity 3.8 vs 2.5), with 1 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 doctest better than g6R?

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

What are the best alternatives to doctest?

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

What are the best alternatives to g6R?

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