Closed chainsawriot closed 2 weeks ago
r-lib/lifecycle#187
As well as #450 #432
tag @schochastics @jsonbecker
I think one solution is to not use lifecycle
for this. Just use the good old warning()
.
Oh wow that's aggressive to report an issue to a maintainer when they've deprecated a feature?
I'm good with swapping this to warning but that's a bad upstream choice.
That is indeed a bit aggressive. I second that a good old warning is enough.
Maybe should give this suggestion by @olivroy a try: r-lib/lifecycle#187
But how deep in the caller_env()
should we go? It is still quite convoluted.
I think I still vote for an ordinary warning
but mostly because I have not yet fully understood the caller_env()
@schochastics OK, I agree with you. And I close this once again.
Agreed the warning seems fine.
Here is my attempt at explaining caller_env()
https://github.com/wjakethompson/taylor/pull/49#issuecomment-2197134362
This guide can be helpful too.
https://rlang.r-lib.org/reference/topic-error-call.html
I made a few PRs to implement this in different packages.
See lintr for example https://github.com/r-lib/lintr/pull/2602 or gt https://github.com/rstudio/gt/pull/1638
https://github.com/gesistsa/rio/blob/447ea1b9b2f50761f8a646d4adb95e2a270175c0/R/utils.R#L145-L150