MangoTheCat / functionMap

Draw the functions map for a R package
36 stars 8 forks source link

Handle S3 #4

Closed gaborcsardi closed 8 years ago

gaborcsardi commented 9 years ago

One simple way would be to consider UseMethod and NextMethod as function calls, and they would call all functions in the package that have a name that matches these calls.

This is not perfect, but R is a dynamically typed language, so you cannot really do much better, without actually running the code and seeing the values passed on.