ashbaldry / depcheck

Package Dependency Usage Check for R Projects
Other
8 stars 0 forks source link

Rcpp package evaluation is misleading #1

Open ycphs opened 2 years ago

ycphs commented 2 years ago

The package openxlsx uses Rcpp quite extensively, but it still shows 0% usage.

Package: 'Rcpp'
Package Dependencies: 0
Package Usage: 0 / 44 (0%)
Functions Used: 
ashbaldry commented 2 years ago

Thanks for testing this out! At the moment {depcheck} only looks at the R code for R function calls from a dependent package's namespace exports. As all use of {Rcpp} is called in the C++ scripts, it will say that {Rcpp} isn't being used even though it is.

I can see how the output is misleading when using non-R code, and will it clearer that it is only checking R functionality. For future runs, you can include ignore_low_usage_packages = "Rcpp" in summary to remove the flag for {Rcpp}.