dumpFunc: Writes the code of a function to a .R file.

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

View source: R/dumpFunc.R

Description

Writes the code of a function to a .R file.

Usage

1

Arguments

name

a character vecter giving the name of the function to write (needs quotes).

Details

Writes the function code to a file called "func_<functionName>.R" in the current directory. Used when a function is to be modified: dump, edit, then source. Unlike 'fix', it leaves a record of changes.

Value

An invisible character vector containing the names of the objects which were dumped.

Author(s)

Mike Meredith, 27 Nov 2006

See Also

Also as dump.

Examples

1
2
3
dumpFunc("panel.smooth")
# Check the working directory for the file:
Sys.glob("fun_*.R")   #   "fun_panel.smooth.R"

mikemeredith/MMmisc documentation built on Nov. 8, 2019, 11:34 p.m.