Comments (4)
from werner.
Since I just recursively process the source, I was thinking about doing it by waiting until the current parser hits a *apply call, and then extracting the second argument as though it were a function.
Edit: That won't quite work since people might do the argument by name instead of by order. So it's a little more complicated, but similar premise.
In addition, I currently don't care about anonymous or (not sure the proper name in R) inner functions, so if it ends up being something of the format vapply(junk_data, function(x) { x^3 + 1 }, numeric(1))
I don't really care. I just want to make sure I'm intercepting vapply(junk_data, some_other_package_function, numeric(1))
calls -- and I should be reasonably able to do so. Going forward it would be interesting to actually support nesting in the resulting data structure though!
from werner.
from werner.
match.fun
didn't work for me (not sure what context I needed that I'm missing) but getAnywhere
worked okay -- there are still a few weird issues but it solved the ones I was thinking of.
from werner.
Related Issues (11)
- Unable to get package of origin for some foreign function calls
- testthat environment fails when normal package use doesn't HOT 2
- Backtick reserved keywords HOT 1
- .Internal not supported
- Function calls which are dynamic currently return INVALID
- Functions defined inside functions not supported HOT 2
- Fails on R6 objects? [Mitigated failure, didn't solve underlying issue] HOT 1
- Functions allocated to variables within functions are not resolved
- Unusual namespacing in utils? [Mitigated but not solved]
- igraph - map size of nodes to LoC HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from werner.