use_r.function: Create file for function using packaging template

Description Usage Arguments Examples

View source: R/use_r.function.R

Description

Create file for function using packaging template

Usage

1
2
3
4
use_r.function(
  file_path,
  edit_file = TRUE
)

Arguments

file_path

[character], length == 1, file path

edit_file

[logical], length == 1, if TRUE will open file if rstudio is available

Examples

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

thmshrt/writethat documentation built on Dec. 31, 2020, 8:37 a.m.