R/features.R

Defines functions siteymlgen_toplevel

# Generate a set of top level features for the yaml document
#
# This function handles the generation of top level features that are used to
# describe the generation of the website, such as `author`, `date`, `title` and
# `site options`.

siteymlgen_toplevel <- function(date=NULL, authors=NULL, name=NULL , affiliation=NULL, title="siteymlgen",
                                categories=NULL, output_dir=NULL, include=NULL,
                                exclude=NULL, ...){

  ymlthis::yml() %>%
    ymlthis::yml_date(date) %>%
    ymlthis::yml_author(
      eval(authors),
      affiliation = affiliation
    ) %>%
    ymlthis::yml_site_opts(name=name,
                           output_dir = output_dir,
                           include = include,
                           exclude = exclude) %>%
    ymlthis::yml_title(title) %>%
    ymlthis::yml_category(categories)

  }

Try the siteymlgen package in your browser

Any scripts or data that you put into this service are public.

siteymlgen documentation built on July 2, 2020, 3:50 a.m.