form_knit {preregr}R Documentation

Knit a (pre)registration form into an Rmd file

Description

This function inserts a (pre)registration form, or one or more sections, into an R Markdown file.

Usage

form_knit(x, section = NULL, headingLevel = 2)

Arguments

x

The (pre)registration form (as produced by a call to form_create()) or initialized preregr object (as produced by a call to prereg_initialize()).

section

The section(s) to show; pass NULL (the default) to show everything.

headingLevel

The level to use for the top-most heading.

Value

x, invisibly

Examples

preregr::form_create(
  title = "Example form",
  version = "0.1.0"
) |>
  preregr::form_knit();

[Package preregr version 0.2.9 Index]