create_postcard: Create a new postcard

Description Usage Arguments Details Examples

View source: R/create.R

Description

Create (and optionally edit) a new postcard.

Usage

1
2
3
4
5
6
7
create_postcard(
  file = "index.Rmd",
  template = "jolla",
  create_dir = FALSE,
  edit = TRUE,
  create_image = TRUE
)

Arguments

file

File name for the draft

template

Template to use as the basis for the draft. This is either the full path to a template directory or the name of a template directory within the rmarkdown/templates directory of a package.

create_dir

TRUE to create a new directory for the postcard (defaults to FALSE).

edit

TRUE to edit the template immediately

create_image

TRUE to create a placeholder image (defaults to TRUE).

Details

Valid values for the template argument include "jolla", "jolla-blue", "trestles", "onofre", and "solana".

Examples

1
2
3
4
5
6
7
8
9
## Not run: 

postcards::create_postcard(template = "jolla")
postcards::create_postcard(template = "jolla-blue")
postcards::create_postcard(template = "trestles")
postcards::create_postcard(template = "onofre")
postcards::create_postcard(template = "solana")

## End(Not run)

postcards documentation built on Jan. 7, 2022, 9:06 a.m.