search.function.importsMe: find the functions, which @importFrom 'func'

Description Usage Arguments Value Author(s) Examples

Description

search within a code base defined by src.root, for functions which contain @importFrom 'pkg' 'func'

Usage

1
2
  search.function.importsMe(func, pkg,
    src.root = getOption("src.root", "~/src/R"))

Arguments

pkg

the name of a package which contains func

func

function or function name

src.root

the root directory containing your codebase.

Value

a list of elements, 1 per file in which the @importFrom directive is found. each element contains:

package

the package name containing the import directive

srcref

The path to the file containing the import directive

funcs

a charcter vector of function name(s) which contain the import directive

If the element is not found, an empty list is returned.

Author(s)

Mark Cowley, 2012-07-16

Examples

1
search.function.importsMe("rename.column", "pwbc")

drmjc/updateR documentation built on May 15, 2019, 2:41 p.m.