@export
- this will
inspect the documented object and automatically figure out the correct
export (which varies based on whether it's a function, s3 method, s4
class, s4 generic/method).
#' @exportClass class1 class2 #' @exportMethods generic1 generic2 #' @exportPattern pattern #' @export #' @export function name
exportMethod
directive, but needs considerable work for S3.
For details, see roxgyen_s3.It's not recommend practice to use @exportPattern
(instead it's
better to individually label the functions to be exported), but this may
be useful for legacy packages.
@S3method
exists largely for compatibility with roxygen2. Roxygen3
now automatically determines if an object is an S3 method, and so only
@export is necessary.