stephenslab / rssr

Regression with summary statistics (RSS) package for R.
10 stars 2 forks source link

Use import or importFrom instead of library(pkg) #4

Open pcarbo opened 7 years ago

pcarbo commented 7 years ago

The standard for packages is to explicitly load functions into the namespace from other packages, and not use require(pkg) or library(pkg) within package functions:

https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Specifying-imports-and-exports

Also add export statements for functions that are visible to the user.

See here for an example.