Description Usage Arguments Examples
View source: R/use_r.function.R
Create file for function using packaging template
1 2 3 4 | use_r.function(
file_path,
edit_file = TRUE
)
|
file_path |
[character], length == 1, file path |
edit_file |
[logical], length == 1, if TRUE will open file if rstudio is available |
1 2 3 4 5 6 7 8 9 | #BEGIN: example
## Not run:
# creates a file
use_r.function('./myfun.R')
# will not overwrite an existing file
use_r.function('./myfun.R')
## End(Not run)
#END: example
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.