struct_template: StRUCT templates

Description Usage Arguments Value Examples

View source: R/struct_templates.R

Description

Create a struct template

Usage

1
2
3
4
5
6
struct_template(
  template = "model",
  output,
  in_editor = TRUE,
  overwrite = FALSE
)

Arguments

template

the type of object you want a template for e.g. 'model'

output

the name/path of the output file

in_editor

TRUE/FALSE to open the created file in the default editor

overwrite

= TRUE/FALSE to overwrite file if exists already

Value

A template is created at the output location specified

Examples

1
2
3
4
## Not run: 
struct_template('model','example.R',FALSE)

## End(Not run)

struct documentation built on Nov. 8, 2020, 8:14 p.m.