createFun | R Documentation |
create a file with a complete (Roxygen) framework for a new function in a package
createFun(fun, path = ".", open = TRUE)
fun |
Character string or unquoted name. Function that will be created with identical filename. |
path |
Path to package in development (including package name itself).
Is passed to |
open |
Logical: open the file? If several instances of Rstudio are open, the last one (not necessarily the active one) will be used. DEFAULT: TRUE |
Tries to open the file in the standard editor for .R files using system2
file name as character string
Berry Boessenkool, berry-b@gmx.de, March 2016
system2
, funSource
, Roxygen2:
https://cran.r-project.org/package=roxygen2/vignettes/rd.html
#createFun("myNewFunction")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.