Skip to content

Conversation

@jcrodriguez1989
Copy link

If makeCallGraph is called with a package name, e.g., package:magrittr it fails as this package contains some functions that are not closures:

library("CodeDepends")
library("magrittr")
makeCallGraph("package:magrittr")
# Error in makeUsageCollector(fun, ...) : only works for closures 

this happens because we are calling findGlobals with a non-closure. I have fixed this, by assigning that a non-closure function calls character(0) functions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant