r-lib / rex

Friendly regular expressions for R.
https://rex.r-lib.org
Other
333 stars 27 forks source link

Eliminate lazyeval #77

Closed hadley closed 2 years ago

hadley commented 2 years ago

This isn't perfectly correct, but I think it's extremely unlikely to cause any problems for typical usage of rex, and it keeps the dependencies minimal.

Fixes #75

hadley commented 2 years ago

The problem is that it evaluates all elements of ... in the parent.frame() of rex, which is technically incorrect, but you should only see the problem if you're passing ... through multiple functions (the first case of https://adv-r.hadley.nz/evaluation.html#programming-with-subset).