In your code /R
, you have these options:
- Prefix with the package name
package::object
- Import the entire package
@import package
- Import specific functions
@importFrom package object
You absolutely cannot use library(package)
or require(package)
anywhere in /R
.
It is OK to use library(package)
in vignettes and tests