formInputContext: Contextual handler for rendering input as HTML form or PDF...

View source: R/form_processing.R

formInputContextR Documentation

Contextual handler for rendering input as HTML form or PDF doc

Description

Given mode (which is expected to be set via knitr runtime parameters so it doesn't need to be passed in), this takes care of logic for reading in the correct input dependency and any additional processing for said input. If mode == "html", we expect to read a config_file. If mode == "latex", we expect to read JSON data and process it to correct format.

Usage

formInputContext(
  config_file = NULL,
  data = NULL,
  mode = knitr::opts_knit$get("rmarkdown.pandoc.to")
)

Arguments

config_file

Path to YAML config file

data

Path to JSON data.

mode

The render mode.


nf-osi/formd documentation built on June 19, 2022, 9:42 a.m.