New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lazy evaluation issue in widely()
#44
Comments
Yes, you are correct! Are you interested in submitting a PR to add |
lhdjung
added a commit
to lhdjung/widyr
that referenced
this issue
Nov 9, 2022
Sure! I hope my PR is adequate. |
Closed by #45 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I really like this package, but I think
widely()
has the very minor issue described in Advanced R ch. 10.2.3, Forcing evaluation:Created on 2022-11-04 with reprex v2.0.2
The easiest solution would be to insert
force()
calls intowidely()
's function body, as below. Another possibility is rewritingwidely()
usingfactory::build_factory()
.(Edit: I previously made a mistake in the code below but the result is the same after correction.)
With
squarely()
, though, everything looks fine:Created on 2022-11-04 with reprex v2.0.2
The text was updated successfully, but these errors were encountered: