← Back to home
Comparison · Infra & APIs

cli vs roxygen2

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

Shared themes:r

cli vs roxygen2: at a glance

Featurecliroxygen2
SectorInfra & APIsInfra & APIs
Velocity score0.02.5
Sparks · 30d00
Top themesr, cli, terminal-output, formattingr, documentation, devtools, dependencies
Last editorial update2h ago2h ago
WebsiteVisit →Visit →

What is cli?

cli refines terminal output one formatting detail at a time.

cli builds the formatted terminal output used across r-lib and the tidyverse — inline styles, progress bars, hyperlinks, pluralization. Every release in this window is small and specific: number and byte styles, pluralization that copes with NA and infinities, collapse behaviour that obeys serial comma rules.

Read the full cli trajectory →

What is roxygen2?

roxygen2 8.0 cut stringi out of the entire devtools dependency tree.

roxygen2 turns inline comments into R documentation and NAMESPACE files. The 8.0.0 release was as much about dependencies as features: dropping purrr, stringr and stringi means nothing in the devtools constellation pulls in stringi, long a persistent install obstacle on constrained Linux systems. 8.1.0 follows with markdown correctness work and cached link resolution.

Read the full roxygen2 trajectory →

cli vs roxygen2: editorial side-by-side

C
cli
INFRA · APIS
0.0

cli refines terminal output one formatting detail at a time.

◆ Current state

cli builds the formatted terminal output used across r-lib and the tidyverse — inline styles, progress bars, hyperlinks, pluralization. Every release in this window is small and specific: number and byte styles, pluralization that copes with NA and infinities, collapse behaviour that obeys serial comma rules.

◆ Where it's heading

The work splits in two. One half is expressiveness, adding inline style classes for value types packages format constantly. The other is environment compatibility, where cli must work out what the surrounding terminal or IDE actually supports — hyperlink URI generation became configurable rather than fixed, and hyperlinks are disabled where the host renders them badly.

◆ Prediction

Expect more inline style classes and further environment detection work as editors like Positron and RStudio change how they render terminal output.

R
roxygen2
INFRA · APIS
2.5

roxygen2 8.0 cut stringi out of the entire devtools dependency tree.

◆ Current state

roxygen2 turns inline comments into R documentation and NAMESPACE files. The 8.0.0 release was as much about dependencies as features: dropping purrr, stringr and stringi means nothing in the devtools constellation pulls in stringi, long a persistent install obstacle on constrained Linux systems. 8.1.0 follows with markdown correctness work and cached link resolution.

◆ Where it's heading

The package is investing in the documentation toolchain beneath it — a new rdtools package supplies cached indexes so link targets and inherited Rd topics resolve without repeated help() lookups. Running alongside is steady correction of markdown handling, where multibyte characters inside Rd tags had been corrupting everything that followed.

◆ Prediction

Expect more Rd processing to migrate into rdtools, and further link-resolution changes now that all generated links share a single code path.

Alternatives to cli and roxygen2

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 cli or roxygen2.

See all cli alternatives → · See all roxygen2 alternatives →

Recent activity from cli and roxygen2

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

  1. 8d agoroxygen2roxygen2 8.1.0 resolves links via cached rdtools indexes
  2. 3mo agoroxygen2roxygen2 8.0.0 drops stringi from the devtools dependency chain
  3. 4mo agoclicli 3.6.6 adds inline number and byte formatting styles
  4. 11mo agoroxygen2roxygen2 7.3.3 auto-resolves markdown links to external topics
  5. 1y agoclicli 3.6.5 handles long strings in code_highlight()
  6. 1y agoclicli 3.6.4 makes hyperlink URIs configurable
  7. 2y agoroxygen2roxygen2 7.3.2 disables cli hyperlinks in included Rmd
  8. 2y agoclicli 3.6.3 builds on ARM Windows, fixes RStudio highlighting
  9. 2y agoroxygen2roxygen2 7.3.1 fixes @importFrom for quoted non-syntactic names
  10. 2y agoroxygen2roxygen2 7.3.0 reports S3 methods missing @export
  11. 2y agoclicli 3.6.2 makes collapsed strings follow serial comma rules
  12. 3y agoclicli 3.6.1 disables ANSI hyperlinks on the RStudio render plane

Frequently asked questions

What is the difference between cli and roxygen2?

Both compete on the same themes — r — within Infra & APIs. roxygen2 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 cli better than roxygen2?

Sparkpulse doesn't pick a winner — we score release velocity, not feature parity. roxygen2 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 Infra & APIs products to evaluate alongside.

What are the best alternatives to cli?

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

What are the best alternatives to roxygen2?

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