importPackage: Fast way to use import for a new package

Description Usage Arguments Details Value Note Author(s) See Also Examples

View source: R/base_importPackage.R

Description

Fast way to use import for a new package

Usage

1
importPackage(path.namespace = ".")

Arguments

path.namespace

the path of NAMESPACE file of the new package

Details

1. The package must be managed via roxygen2-package;
2. The package import relationship must be updated via roxygenise

Value

a complete import relationship in DESCRIPTION file of a new package

Note

before use importPackage(), you have to run roxygen2::roxygenise() before in order to gather correct package usage from this new package.

Author(s)

Weibin Huang<654751191@qq.com>

See Also

roxygenise; use_package

Examples

1
2
# If you are in the space of a new package, just
importPackage()

huangwb8/lucky documentation built on Oct. 16, 2019, 9:01 a.m.