write_fun_dependencies: Write a file with all dependencies of a user-defined...

Description Usage Arguments Value Examples

View source: R/write_fun_dependencies.R

Description

Write a file with all dependencies of a user-defined function.

Usage

1
write_fun_dependencies(pkg, fun, file_nm)

Arguments

pkg

String giving the package where fun lives, with the format "package:PACKAGE", where lowercase is literal and caps is variable.

fun

String giving the function which dependencies you want to write to a file.

file_nm

String giving the path to a file where to write the output.

Value

A file with the functions on which fun depends.

Examples

1
2
3
4
5
6
7
8
## Not run: 
library(base)
pkg <- "package:base"
fun <- "sum"
file_nm <- "./dependencies_of_base-sum.R"
write_fun_dependencies(pkg, fun, file_nm)

## End(Not run)

maurolepore/handy documentation built on May 21, 2019, 1:37 p.m.