-
Notifications
You must be signed in to change notification settings - Fork 37
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
Handle functions referenced by name as a string when using do.call() #302
Comments
I think this could be a useful feature, but I personally am not committing to working on it. For anyone reading this post... I'd be happy to review a pull request proposing such a change. @bburns632 could you encourage whoever emailed you directly to come talk to us here, if they're interested in contributing that feature? |
Of course. This was posted as a general question / call to action for the
pkgnet community. To that end, if anyone is interested in developing this
feature, please comment on this ticket then start a PR.
…On Sat, Apr 29, 2023, 10:48 PM James Lamb ***@***.***> wrote:
I think this could be a useful feature, but I personally am not committing
to working on it.
For anyone reading this post... I'd be happy to review a pull request
proposing such a change. @bburns632 <https://github.com/bburns632> could
you encourage whoever emailed you directly to come talk to us here, if
they're interested in contributing that feature?
—
Reply to this email directly, view it on GitHub
<#302 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AF3FDS4YSEECBTG4HN45DJDXDXOHNANCNFSM6AAAAAAW6PIOUY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
OK. Looking into this feature. Would like to bounce this idea off you @jayqi as I recall much of the current function network code originally written by you. Why do this? Why doesn't it work now? Plan of attack https://github.com/uptake/pkgnet/blob/main/R/FunctionReporter.R#L361-L374 Design Decisions:
|
With the caveat that I remember only like 5% of what we're doing here, how it works, why it works a certain way:
|
@jayqi, on your second point, here are some quick edits on Between each, I am quitting R without memory and recreating with this code chunk:
|
Working on the edge case handling now |
(I'm reposting a great question I received via email)
Does the pkgnet pick up function calls that use do.call()? It seems it doesn't. For example, within a function in a package I am working on, I have this call
nuis <- do.call(".estimate_nuisance",
args = c(data = list(data),
.key.inputs,
.nuis.inputs))
In this case pkgnet doesn't pick up the dependence on the function .estimate_nuisance(). In this particular package, this happens to be one of the key dependences, and we need to use do.call in order to tailor a bunch of options based on context, which we put in .nuis.inputs.
Is there an argument I can provide to CreatePackageReport() that would allow picking up dependencies through do.call()? If not, would you consider adding this?
The text was updated successfully, but these errors were encountered: