← Back to home
Comparison · Analytics

comtradr vs writexl

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

comtradr vs writexl: at a glance

Featurecomtradrwritexl
SectorAnalyticsAnalytics
Velocity score2.56.3
Sparks · 30d01
Top themestrade data, api wrapper, un comtrade, error handlingxlsx, libxlsxwriter, cell-formatting, major-version
Last editorial update5h ago1h ago
WebsiteVisit →Visit →

What is comtradr?

comtradr's 1.0 line is a long tail of patches against a brittle UN trade API.

comtradr wraps the UN Comtrade API for international trade data in R, handling authentication, reference tables, caching and bulk downloads. The entire visible window is the 1.0 patch series: six releases, most of them repairs. The substantive additions are a variable-metadata reference table and automatic request splitting.

Read the full comtradr trajectory →

What is writexl?

writexl spent nine years refusing to do formatting, then shipped all of it in 2.0.0.

For most of its history writexl was a deliberately minimal wrapper: bump the vendored libxlsxwriter, handle NA and Date coercion correctly, support a list of data frames for multiple sheets, and nothing else. 2.0.0, released August 2026, changes that — near-full libxlsxwriter coverage, cell/worksheet/workbook formatting, cell comments, an `xl_cell_general` class carrying value, formula and hyperlink, a cell-by-cell refactor, libxlsxwriter 1.2.4, and memory-safety work. It landed the same day as 1.5.4, a typo fix on the old line.

Read the full writexl trajectory →

comtradr vs writexl: editorial side-by-side

C
comtradr
ANALYTICS
2.5

comtradr's 1.0 line is a long tail of patches against a brittle UN trade API.

◆ Current state

comtradr wraps the UN Comtrade API for international trade data in R, handling authentication, reference tables, caching and bulk downloads. The entire visible window is the 1.0 patch series: six releases, most of them repairs. The substantive additions are a variable-metadata reference table and automatic request splitting.

◆ Where it's heading

The work is defensive, shaped by the API's constraints rather than by a roadmap. The 1.0.6 fix is representative: Comtrade rejects URLs longer than about 2000 characters, so the package now detects that before the request and transparently splits and recombines it. Running alongside is steady dependency hygiene, most recently swapping poorman for dplyr ahead of a CRAN archival.

◆ Prediction

The release pattern points to more of the same, with error-message and edge-case repairs as users hit new API limits, rather than new endpoints.

W
writexl
ANALYTICS
6.3

writexl spent nine years refusing to do formatting, then shipped all of it in 2.0.0.

◆ Current state

For most of its history writexl was a deliberately minimal wrapper: bump the vendored libxlsxwriter, handle NA and Date coercion correctly, support a list of data frames for multiple sheets, and nothing else. 2.0.0, released August 2026, changes that — near-full libxlsxwriter coverage, cell/worksheet/workbook formatting, cell comments, an `xl_cell_general` class carrying value, formula and hyperlink, a cell-by-cell refactor, libxlsxwriter 1.2.4, and memory-safety work. It landed the same day as 1.5.4, a typo fix on the old line.

◆ Where it's heading

The package has changed category. Its selling point was being the dependency-free, opinion-free way to get a data frame into xlsx; 2.0.0 makes it a formatting-capable writer that now compares itself against openxlsx2 in its own test suite. The cell-by-cell refactor is what made that possible and is also the largest structural change in the package's history. Note that a single contributor drove essentially all of it.

◆ Prediction

Expect follow-up releases fixing edge cases in the new formatting and comment APIs — the cell-by-cell rewrite is too large to land clean, and the 2.0.0 notes already mention an off-by-one in date columns.

Alternatives to comtradr and writexl

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 comtradr or writexl.

See all comtradr alternatives → · See all writexl alternatives →

Recent activity from comtradr and writexl

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

  1. 8d agowritexlwritexl 2.0.0 adds formatting, comments and full libxlsxwriter coverage
  2. 8d agowritexlwritexl 1.5.4 fixes a documentation typo
  3. 13d agocomtradrLong code lists split automatically to avoid HTTP 414 errors
  4. 8mo agocomtradravailable_variables reference table exposes API metadata
  5. 10mo agocomtradrISO alpha-2 codes added to reference tables
  6. 1y agocomtradrPatch restores tidy_cols after a regression
  7. 1y agocomtradrFixes for tidy_cols argument and bulk small-file downloads
  8. 2y agocomtradrCache relocated to comply with CRAN policy
  9. 5y agowritexlwritexl 1.4.0 updates libxlsxwriter to 1.0.3
  10. 6y agowritexlwritexl 1.2 fixes NA in formulas and hyperlinks
  11. 7y agowritexlwritexl 1.1 fixes NA strings and bit64 coercion
  12. 8y agowritexlwritexl 1.0 writes Date values as datetimes

Frequently asked questions

What is the difference between comtradr and writexl?

They serve adjacent needs but don't currently overlap on shipped themes. writexl is currently shipping more aggressively (velocity 6.3 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 comtradr better than writexl?

Sparkpulse doesn't pick a winner — we score release velocity, not feature parity. writexl is currently shipping more aggressively (velocity 6.3 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 Analytics products to evaluate alongside.

What are the best alternatives to comtradr?

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

What are the best alternatives to writexl?

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