Learn R Programming

berryFunctions (version 1.11.0)

createFun: create function framework

Description

create a file with a complete (Roxygen) framework for a new function in this package

Usage

createFun(fun, package = "berryFunctions", path = "S:/Dropbox/Public")

Arguments

fun
Character string or unquoted name. Function that will be crated with identical filename
package
Character String with package name. DEFAULT: "berryFunctions"
path
Path to package in development (not package name itself) DEFAULT: "S:/Dropbox/Public"

Value

file name as character string

Details

Tries to open the file in the standard editor for .R files using system2

See Also

system2, funSource

Examples

Run this code
#createFun("myNewFunction")

Run the code above in your browser using DataLab