create_postcard {postcards}R Documentation

Create a new postcard

Description

Create (and optionally edit) a new postcard.

Usage

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

## 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)

[Package postcards version 0.2.3 Index]