Open DanChaltiel opened 1 month ago
I think I'd rather fix either is_missing()
or missing()
in base. This env
argument doesn't seem ergonomic.
I edited my post to show the proper FR demand.
However, I am not sure to understand, what do you mean by "fix in base"?
Also, what would you suggest instead of env
?
If you don't think this would be a nice improvement to rlang::is_missing()
, would you have a suggestion on a better way to do that than eval(parse(...))
?
Hi,
In some cases, it can be interesting to know if an argument is missing from the caller frame.
For instance, I'd like to propose a standard way to handle arguments through options when they are missing. Here, being able to check the missingness from inside a helper would be very handy.
Here is a reprex with a clumsy workaround:
Created on 2024-05-30 with reprex v2.1.0
Note that
is_miss_bad()
would actually work fine ifa
didn't have a default value.Would you consider adding this feature to
rlang::is_missing()
?