New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
S3 Classes with format and print? #5
Comments
doesn't offer S3 dispatch yet, r-lib/prettyunits#5
Yeah, that would be a more R-ish way, I guess. Which also means somewhat more messy of course. :) x <- structure(1337, class = "pretty_bytes")
paste("File size:", x) then no formatting is used. If we also implement But we can do it, anyway, and then we'll see how it works out. :) |
How important is backward compatibility? We could start by providing
and deprecating the |
I would like to keep the current way as well. We can just add a |
We probably want to use vctrs for this now? |
I think subclassing |
For instance:
Would you support this kind of functionality? It might break compatibility, but then there are not many revdeps (yet) ;-)
The text was updated successfully, but these errors were encountered: