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
{{ message }}
Repository navigation
Default print() and str() trigger deprecated property warnings #754
I came across this while working on tidyverse/ellmer#1107 and trying to deprecate a property of an S7 class.
The default print()/str() for S7 objects call every property getter, so a deprecated property warns every time the object is printed. The workaround is a custom print() method that filters those properties out, which is what the ellmer PR does.
There's some related discussion in #451, and #734 looks to implement deprecated_property(), but the missing piece is whether, once properties can be formally marked as deprecated, print() should skip them?
Activity
Omit deprecated properties from default object printing
Add deprecated_generic(), deprecated_class(), and deprecated_property…