stevecondylios / collidr

Check for namespace collisions across a half a million functions on CRAN 💥
https://stevecondylios.github.io/collidr/
Other
5 stars 1 forks source link

Possible improvement to parsing exported functions #2

Open stevecondylios opened 4 years ago

stevecondylios commented 4 years ago

The default NAMESPACE file generated when creating a new package in RStudio will contain exportPattern("^[[:alpha:]]+")

The NAMESPACE file for each (and every) package on CRAN can be found by downloading the package source from the package index page on CRAN, unzipping, and untarring.

The regular expressions could be used to very accurately list exported functions on a per package basis.