You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Context: the units package adds support for measurement units to R, and uses udunits2 as the backend. One of our users was trying to define g%_hemoglobin as 1 g_hemoglobin/dL (g_hemoglobin was first installed, see r-quantities/units#289). We found that such a unit definition can be installed successfully, but parsing doesn't work, which effectively makes the unit unusable. Here's an example in C:
It could be argued that % shouldn't be allowed in a unit symbol/name, but then unit installation should fail. If it is allowed, then parsing should work.
Context: the units package adds support for measurement units to R, and uses udunits2 as the backend. One of our users was trying to define
g%_hemoglobin
as1 g_hemoglobin/dL
(g_hemoglobin
was first installed, see r-quantities/units#289). We found that such a unit definition can be installed successfully, but parsing doesn't work, which effectively makes the unit unusable. Here's an example in C:Save this as
test.c
and thenIt could be argued that
%
shouldn't be allowed in a unit symbol/name, but then unit installation should fail. If it is allowed, then parsing should work.More info:
The text was updated successfully, but these errors were encountered: