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

CreatePackageReport() breaks on bad logical condition #256

Closed jameslamb closed 4 years ago

jameslamb commented 4 years ago

I'm unsure of the exact issue, but the following code

pkg_name <- YOUR_PACKAGE_NAME
CreatePackageReport(
    pkg_name
    , report_path = file.path(getwd(), "report.html")
)

Yields an error like the following on the Function Network tab (generated by FunctionReporter):

## Error in if (is.na(out) && inheritanceDT[CLASS_NAME == parent_name, !is.na(PARENT_NAME) && : missing value where TRUE/FALSE needed

I've observed this error for the following packages:

discovered via the code in #252