← Back to home
Comparison · Analytics

comtradr vs textrecipes

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

comtradr vs textrecipes: at a glance

Featurecomtradrtextrecipes
SectorAnalyticsAnalytics
Velocity score2.50.0
Sparks · 30d00
Top themestrade data, api wrapper, un comtrade, error handlingtext-processing, tidymodels, recipes, sparse-data
Last editorial update3h ago54m 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 textrecipes?

Text features finally stay sparse all the way to the model.

textrecipes supplies the recipes steps for turning text into model-ready columns: tokenizing, hashing, term frequency, TF-IDF, and word embeddings. Version 1.1.0 added a sparse argument to step_dummy_hash(), step_texthash(), step_tf() and step_tfidf() so they emit sparse vectors. The releases before it are a long consistency pass — keep_original_cols on every step that creates columns, informative errors on name collisions, tunable arguments documented, integer rather than double output where integers are what is meant.

Read the full textrecipes trajectory →

comtradr vs textrecipes: 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.

T
textrecipes
ANALYTICS
0.0

Text features finally stay sparse all the way to the model.

◆ Current state

textrecipes supplies the recipes steps for turning text into model-ready columns: tokenizing, hashing, term frequency, TF-IDF, and word embeddings. Version 1.1.0 added a sparse argument to step_dummy_hash(), step_texthash(), step_tf() and step_tfidf() so they emit sparse vectors. The releases before it are a long consistency pass — keep_original_cols on every step that creates columns, informative errors on name collisions, tunable arguments documented, integer rather than double output where integers are what is meant.

◆ Where it's heading

Two forces drive this package. One is memory: text produces wide, mostly-zero matrices, and the sparse work is the direct answer, landing in the same period that workflows learned to fit and predict on dgCMatrix input. The other is upstream churn — the tweets tokenizer was deprecated because tokenizers deprecated it, the politeness feature disappeared when textfeatures left Suggests. The package's own agenda is consistency; its release timing belongs to its dependencies.

◆ Prediction

Expect the sparse argument to spread to the remaining column-producing steps, since only four of them have it, and expect more steps to be reworked as recipes' own sparse-data support matures.

Alternatives to comtradr and textrecipes

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 textrecipes.

See all comtradr alternatives → · See all textrecipes alternatives →

Recent activity from comtradr and textrecipes

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

  1. 13d agocomtradrLong code lists split automatically to avoid HTTP 414 errors
  2. 8mo agocomtradravailable_variables reference table exposes API metadata
  3. 10mo agocomtradrISO alpha-2 codes added to reference tables
  4. 1y agotextrecipesHashing and TF-IDF steps can emit sparse vectors
  5. 1y agotextrecipesstep_textfeatures() sped up; clean_levels NA bug fixed
  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. 2y agotextrecipestextfeatures dependency dropped; politeness feature removed
  10. 2y agotextrecipesuntokenize and normalization return factors
  11. 2y agotextrecipeskeep_original_cols everywhere; hashing column order fixed
  12. 3y agotextrecipesTunable arguments documented; name collisions now error

Frequently asked questions

What is the difference between comtradr and textrecipes?

They serve adjacent needs but don't currently overlap on shipped themes. comtradr 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 comtradr better than textrecipes?

Sparkpulse doesn't pick a winner — we score release velocity, not feature parity. comtradr 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 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 textrecipes?

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