-
Notifications
You must be signed in to change notification settings - Fork 6
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
Copying functions from rlang now fixes version on installation #2
Comments
Thanks for letting me know about this! What about setting the functions using the on load hook as an idea? |
Although everything will still work if user uses the conversion feature. So maybe it's simplest to do nothing. |
Thought about it, but when using .onLoad one should not assume any package except the base package to be on the search path. So pretty sure that this is opening a can of worms you rather keep closed. I couldn't come up with something either, so "do nothing but keep in mind this might be an issue at one point" would be my choice too. |
When you use |
Thanks for the clarification Lionel! |
If you do the following:
the function code is copied from rlang into your own package at time of installation. That also means that when an updated version of
rlang
is installed by the user, your functiontyped_as_name
still uses the oldrlang::enquo
code. The prefered (and documented) way to get around this issue, is to wrap it in a function (see eg explanation in Writing R extensions:But in that case
typed_as_name
won't work any longer due todplyr::mytate_impl()
not being able to processarg
correctly. Same happens when you try withGiven the nature of the function
rlang::enquo
, this issue is pretty hard to get around. Then again, theserlang
functions are unlikely to change so this shouldn't really be a problem in everyday use.The text was updated successfully, but these errors were encountered: