r-quantities / units

Measurement units for R
https://r-quantities.github.io/units
175 stars 28 forks source link

Please export ud_are_convertible() #258

Closed cregouby closed 3 years ago

cregouby commented 3 years ago

Hello,

In a recent PR to improve prettyunits::pretty_num() with support of units, I've been using the private function units:::ud_are_convertible(). This makes my PR at risk for the future, and I would like to ask you to export that function in your package.

Of course adding a local pretty_num.units() function could be an alternative way-forward.

Please let me know.

edzer commented 3 years ago

I'm open for both options; since prettyunits provides the generic it might make sense to keep the units method there as well.