which.src.file: Find the source file for a given function. This is a wrapper...

Description Usage Arguments Value Author(s) See Also

Description

Find the source file for a given function. This is a wrapper around find.src.file

Usage

1
2
3
4
  which.src.file(func, src.root = getOption("src.root"),
    src.files = NULL,
    exclude.patterns = c("~", ".Rcheck", ".git", ".svn"),
    unique = TRUE)

Arguments

func

a function name, or function's code

src.root

The parent folder of source code

src.files

an optional vector of filenames to search within

exclude.patterns

vector of patterns passed to grep for files to exclude

unique

logical: If TRUE then at most 1 file path is returned; if FALSE, all matching filepaths are returned

Value

a vector of file paths,

Author(s)

Mark Cowley

See Also

find.src.file


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