Closed krlmlr closed 5 years ago
@@ master #24 diff @@
===================================
Files 3 3
Lines 57 61 +4
Methods 0 0
Messages 0 0
Branches 0 0
===================================
+ Hits 57 61 +4
Misses 0 0
Partials 0 0
Powered by Codecov. Last update 80b2bfc...7e8f133
Can be solved in {units} with vctrs::s3_register()
.
Problem: The
units
package implementsas.hms.units()
but doesn't necessarily need to import theunits
package.Solution:
units
declareshms
as "Enhances",hms
patches its S3 methods table whenunits
is loaded or unloaded.@hadley: PTAL; this could be described in a "vctrs" vignette; the problem of type conversion without importing will reappear.
@edzer: Would you mind adding "Enhances: hms (>= 0.2-2)" instead of edzer/units@24f1b61?