uptake / pkgnet

R package for analyzing other R packages via graph representations of their dependencies
https://uptake.github.io/pkgnet/
Other
152 stars 37 forks source link

extend to do.call case with func param as text (resolves #302) #309

Closed bburns632 closed 5 months ago

bburns632 commented 5 months ago

do.call with the function argument as string will now properly appear on the function reporter. Previously, this would show as a do.call node with a circular reference. (#302)

This bit of code checks the recursion step for a list with a do.call call as the first element and a string as the second. If true, it converts the string to a call, and then continues with the recursion.

Note: baseballstats test package is changed, BUT because this do.call is in place, network remains identical. Therefore, unit test for this edge case included.