-
Notifications
You must be signed in to change notification settings - Fork 157
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
set_attr and sys.function #271
Comments
This is expected behaviour / a limitation of magrittr. But I see you've already found a couple of workarounds :-) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First, thank you for an incredibly useful package. I'm a big fan of
magrittr
and appreciative of the work that you do. This is the first time I've run into unexpected behavior, so here goes.I was hoping to call
set_attr
and pass it the result ofsys.function
. This doesn't work / no attribute is set. I'm using magrittr version 2.0.3.Experimenting, I found that I could get the expected result using
attr<-
in lieu ofset_attr
. Also, assigning to an intermediate variable,phi
, in the execution environment, i.e.,phi <- sys.function()
, before callingset_attr
withphi
worked. This made me wonder if the issue might be related to #195. It's also possible (likely) that I have the wrong expectations. Please don't hesitate to point me back to any relevant documentation, and thanks for any clarity you can provide.The text was updated successfully, but these errors were encountered: