tag-import: Namespace: tags for importing functions.

Description Details Tag Usage

Description

By and large, @autoImports should be the only imports tag that you need to use. It automatically generates the necessary importFrom statements to import all external functions used by this function. See auto_imports for more implementation details.

Details

If there is a conflict, use tag_importFrom to resolve it. You can do @importFrom base function - this is not normally allowed in the ‘NAMESPACE’, but roxygen3 will simply ignore it, but still use it when resolving conflicts.

You must have the packages declared in DESCRIPTION Imports.

Tag Usage

1
2
3
4
#' @importClassesFrom package fun1 fun2
#' @importFrom package function1 function2
#' @importMethodsFrom package fun1 fun2
#' @import package1 package2 package3

hadley/roxygen3 documentation built on May 17, 2019, 12:16 p.m.