Skip to content

units

Measurement Units for R Vectors

v1.0-1 · Mar 11, 2026 · GPL-2

Description

Support for measurement units in R vectors, matrices and arrays: automatic propagation, conversion, derivation and simplification of units; raising errors in case of unit incompatibility. Compatible with the POSIXct, Date and difftime classes. Uses the UNIDATA udunits library and unit database for unit compatibility checking and conversion. Documentation about 'units' is provided in the paper by Pebesma, Mailund & Hiebert (2016, <doi:10.32614/RJ-2016-061>), included in this package as a vignette; see 'citation("units")' for details.

Downloads

304K

Last 30 days

197th

881.4K

Last 90 days

4.2M

Last year

Trend: +4.6% (30d vs prior 30d)

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 22, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 18, 2026
ERROR r-devel-windows-x86_64

whether package can be installed

Installation failed.
See 'd:/Rcompile/CRANpkg/local/4.6/units.Rcheck/00install.out' for details.
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (147)

Dependency Network

Dependencies Reverse dependencies Rcpp Rdistance photosynthesis quantities tealeaves ARUtools ECOTOXr EmissV FIESTAutils ILORA IceSat2R MRG MassWateR PKbioanalysis a5R aNCA +132 more reverse deps units

Version History

34 tracked
updated 1.0-1 ← 1.0-0 diff Mar 11, 2026
new 1.0-0 Mar 10, 2026
updated 1.0-0 ← 0.8-7 diff Oct 8, 2025
updated 0.8-7 ← 0.8-6 diff Mar 11, 2025
updated 0.8-6 ← 0.8-5 diff Mar 7, 2025
updated 0.8-5 ← 0.8-4 diff Nov 27, 2023
updated 0.8-4 ← 0.8-3 diff Sep 12, 2023
updated 0.8-3 ← 0.8-2 diff Aug 10, 2023
updated 0.8-2 ← 0.8-1 diff Apr 26, 2023
updated 0.8-1 ← 0.8-0 diff Dec 9, 2022
updated 0.8-0 ← 0.7-2 diff Feb 4, 2022
updated 0.7-2 ← 0.7-1 diff Jun 7, 2021
updated 0.7-1 ← 0.7-0 diff Mar 15, 2021
updated 0.7-0 ← 0.6-7 diff Feb 24, 2021
updated 0.6-7 ← 0.6-6 diff Jun 12, 2020