Description Usage Arguments Author(s) Examples
Prints a function to a file.
1 | writeFunction(fun, file = NULL)
|
fun |
A function. |
file |
A character string naming a file. By default, write
the function in |
Mathieu Basille basille@ufl.edu
1 2 3 4 5 6 7 8 9 | f1 <- function(x) {
## Comment
print(x)
}
writeFunction(f1)
rm(f1)
source("f1.R")
file.remove("f1.R")
f1(3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.