Skip to content
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

How to makeCallGraph() without having a package? #50

Open
telenskyt opened this issue Nov 5, 2024 · 0 comments
Open

How to makeCallGraph() without having a package? #50

telenskyt opened this issue Nov 5, 2024 · 0 comments

Comments

@telenskyt
Copy link

telenskyt commented Nov 5, 2024

Hello,

I have an extensive code with many *.R files containing many functions. I don't have a package yet (too early in the development, it has yet to be determined, what parts of code would constitute what package(s) ...). I want to make a function call graph. I checked the makeCallGraph function of this package, but according to the documentation, it seems it takes package as the input - the obj parameter - citing the help:

obj | The name of one or more packages as a string, optionally prefixed with "package:". This can be a vector of package names. Currently the packages should already be on the search path. Other inputs may be supported in the future

Supplying file name results in an error. I also tried to provide a function as the obj, but it creates no edges.

PS: my goal is to make a call graph from multiple source files, while distinguishing in the graph which source file the function belongs to. Please let me know how to do this.

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

No branches or pull requests

1 participant