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
Hello, I'm seeing an issue with the development version of magrittr which switches to a lazy evaluation approach. It causes this error in your package:
Because of lazy evaluation, the input to graft has not been evaluated yet when you check if data2 is missing. One way to fix this is to force() the input like this:
We're planning to release magrittr in one month. It'd be great if you could update your package :)
Note that the future native pipe in the next version of R will use this same approach, so by fixing your package for the new magrittr behaviour you'll make it usable with the native pipe as well.
The text was updated successfully, but these errors were encountered:
Thank you for the report and the suggested fix. I will work on this week. it's been quite a while since i've worked on this package so i suspect it will need some other updates to remain in compliance with CRAN.
Hello, I'm seeing an issue with the development version of magrittr which switches to a lazy evaluation approach. It causes this error in your package:
That's because the pipeline is now evaluated as if it were nested, instead of linearly:
Because of lazy evaluation, the input to
graft
has not been evaluated yet when you check ifdata2
is missing. One way to fix this is toforce()
the input like this:We're planning to release magrittr in one month. It'd be great if you could update your package :)
Note that the future native pipe in the next version of R will use this same approach, so by fixing your package for the new magrittr behaviour you'll make it usable with the native pipe as well.
The text was updated successfully, but these errors were encountered: