import_from: Generate importFrom tag from a function

Description Usage Arguments Value Examples

View source: R/import-from.R

Description

Works only if functions used are prefixed in the body.

Usage

1
import_from(fun, quiet = FALSE)

Arguments

fun

A function.

quiet

Logical, display output to console ?

Value

Invisible character string

Examples

1
2
3
4
my_fun <- function(path) {
  utils::read.table(file = path, header = FALSE, sep = "\t")
}
import_from(my_fun)

dreamRs/prefixer documentation built on Sept. 14, 2021, 10:50 p.m.