← Back to home
Comparison · Analytics

affiner vs units

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

affiner vs units: at a glance

Featureaffinerunits
SectorAnalyticsAnalytics
Velocity score0.00.0
Sparks · 30d00
Top themesr-package, computational-geometry, grid-graphics, affine-transformsmeasurement units, r package, udunits2, breaking parser change
Last editorial update45m ago4h ago
WebsiteVisit →Visit →

What is affiner?

affiner is quietly turning a grid transformation helper into a small computational geometry library.

An R package that began as a wrapper around grid's affine transformation primitives, with an angle vector class supporting degrees, radians, half-turns, turns and gradians so users need not convert by hand. Four releases in roughly eighteen months. The recent two have expanded well past that starting point into geometric objects and the predicates that operate on them.

Read the full affiner trajectory →

What is units?

units reaches 1.0 by rewriting its parser and accepting the breakage that comes with it.

units attaches physical units to R vectors on top of the udunits2 library, covering arithmetic, conversion and ggplot2 scales. Version 1.0-0 replaced the unit-expression tokenizer so numbers are consistently treated as prefixes, and expressions like ml/min/1.73m^2 now parse the way physiologists write them. Printing follows NIST conventions, and 1.0-1 is a fix pass over memory handling and parser edge cases.

Read the full units trajectory →

affiner vs units: editorial side-by-side

A
affiner
ANALYTICS
0.0

affiner is quietly turning a grid transformation helper into a small computational geometry library.

◆ Current state

An R package that began as a wrapper around grid's affine transformation primitives, with an angle vector class supporting degrees, radians, half-turns, turns and gradians so users need not convert by hand. Four releases in roughly eighteen months. The recent two have expanded well past that starting point into geometric objects and the predicates that operate on them.

◆ Where it's heading

The direction is clear from the order things arrived. Version 0.2.1 added the predicate layer first — has_intersection(), intersection(), is_equivalent() and is_parallel() as S3 generics working across angle vectors, points, lines and planes. Version 0.3.1 then supplied the objects those generics need, with Ellipse2D, Polygon2D and Segment2D R6 classes plus constructors for rectangles, regular n-gons and isotoxal star polygons, and dot products at one, two and three dimensions. Building the operations before the shapes is unusual ordering but it means each new object type arrives already composable with everything else.

◆ Prediction

Expect more 2D and 3D object types filling out the same generic interface, and the geometry side to keep outgrowing the grid-transformation wrapper the package was named for.

U
units
ANALYTICS
0.0

units reaches 1.0 by rewriting its parser and accepting the breakage that comes with it.

◆ Current state

units attaches physical units to R vectors on top of the udunits2 library, covering arithmetic, conversion and ggplot2 scales. Version 1.0-0 replaced the unit-expression tokenizer so numbers are consistently treated as prefixes, and expressions like ml/min/1.73m^2 now parse the way physiologists write them. Printing follows NIST conventions, and 1.0-1 is a fix pass over memory handling and parser edge cases.

◆ Where it's heading

The long 0.8-x run was accretion — ggplot2 scales absorbed from ggforce, ud_convert(), matrix methods, steady performance work — while known parsing defects stayed in place. The 1.0 release finally traded backwards compatibility for correct parsing, and 1.0-1's pointer-wrapping and exception-propagation work suggests the C++ glue is being hardened behind it. Fixes cluster at the udunits2 boundary, which remains the main source of surprises.

◆ Prediction

Expect continued patch releases against udunits2 quirks and the new tokenizer's fallout rather than new surface area, with the ggplot2 integration and conversion helpers already in place.

Alternatives to affiner and units

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 affiner or units.

See all affiner alternatives → · See all units alternatives →

Recent activity from affiner and units

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

  1. 3mo agoaffinerEllipse, polygon and segment objects, with star and n-gon constructors
  2. 5mo agounitsMemory-leak and udunits2 parsing fixes after 1.0
  3. 6mo agoaffinerIntersection, equivalence and parallelism generics across geometric types
  4. 10mo agounitsNew tokenizer parses compound units correctly
  5. 1y agounitsCopy semantics fix in ud_convert(); C++17 for old R
  6. 1y agounitscbind/rbind methods, ud_convert() and broad fixes
  7. 1y agounitsSilences a CRAN compiler warning
  8. 1y agoaffinerIsocube border fill forced transparent
  9. 1y agoaffinerInitial release: affine grob wrappers and multi-unit angle vectors
  10. 2y agounitsRestores simplify=FALSE for identical units

Frequently asked questions

What is the difference between affiner and units?

They serve adjacent needs but don't currently overlap on shipped themes. affiner and units are shipping at a similar cadence (velocity 0.0 vs 0.0, both within Sparkpulse's "active" band). See the at-a-glance table above for a side-by-side breakdown of velocity, recent sparks, and editorial themes.

Is affiner better than units?

Sparkpulse doesn't pick a winner — we score release velocity, not feature parity. affiner and units are shipping at a similar cadence (velocity 0.0 vs 0.0, both within Sparkpulse's "active" band). For your specific use case, the alternatives sections above list other Analytics products to evaluate alongside.

What are the best alternatives to affiner?

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

What are the best alternatives to units?

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