Skip to contents

Creates a new example .Rmd file from a standard template.

Usage

make_example(
  strName = "Example_Name",
  strType = c("Example", "Cookbook"),
  strDetails = "<<Fill in Example description here>>",
  intIndex = 999,
  output_dir = "pkgdown/menus/examples",
  overwrite = FALSE,
  verbose = TRUE
)

Arguments

strName

(string) Display name of the example.

strType

(string) Type of example, either "Example" or "Cookbook".

strDetails

(string) Optional description for the example.

intIndex

(numeric) Sort-order index. NULL, NA, and length-0 vectors are treated as absent.

output_dir

(string) Directory to write the asset to.

overwrite

(boolean) Overwrite existing files?

verbose

(boolean) Inform about changes? Default is TRUE.

Value

Path to the created example file (invisibly).