Skip to contents

Open a basic template suitable for use with btable

Usage

use_btabletemplate(name, fmt = c("Rmd", "Rnw"), ..., open = TRUE)

Arguments

name

name to save the file under

fmt

character defining format (Rmd or Rnw are accepted)

...

other options passed to use_template

open

logical, whether to open the file

Value

(by default) saves and opens a script of the chosen format

Examples

if (FALSE) { # \dontrun{
# Rmd file
use_btabletemplate("foo")
# Rnw file
use_btabletemplate("foo", fmt = "Rnw")
} # }