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
I am unable to deprecate an entire R6 class. There was an issue for deprecating an R6 method (#54) that was fixed, but that does not seem to work within initialize. If I'm missing something, please let me know.
A<-R6::R6Class("A", list(
initialize=function() {
lifecycle::deprecate_warn('1.0.0', 'A$new()')
}
))
A$new()
#> Warning: `A$new()` was deprecated in <NA> 1.0.0.#> ℹ The deprecated feature was likely used in the R6 package.#> Please report the issue at <https://github.com/r-lib/R6/issues>.#> <A>#> Public:#> clone: function (deep = FALSE) #> initialize: function ()
I think the problem here is that initialize() is not called directly by the user, so the soft deprecation path doesn't trigger. Not sure if there's anything we can do about this
I am unable to deprecate an entire R6 class. There was an issue for deprecating an R6 method (#54) that was fixed, but that does not seem to work within
initialize
. If I'm missing something, please let me know.Minimal reprex:
The text was updated successfully, but these errors were encountered: