sussex.boilerplate: Generate boilerplate title page for Psychology@Sussex exams.

View source: R/sussex_boilerplate.R

sussex.boilerplateR Documentation

Generate boilerplate title page for Psychology@Sussex exams.

Description

Produces a title page and yaml front matter text to be used in make.paper().

Usage

sussex.boilerplate(
  module,
  module_code,
  exam_diet,
  time_allowed,
  n_sections,
  marks_per_q,
  section_weights = NULL,
  sample = F
)

Arguments

module

@param module_code character. Name and code of the module.

exam_diet

character. Examinatiopn diet (e.g., sit - A2, resit - A3...). See example.

time_allowed

character. Total time allowed for completion.

n_sections

numeric. Number of sections in the paper.

marks_per_q

numeric. Number of marks per item.

section_weights

character. Line to include with information about section weighting.

sample

logical. Should this be a sample paper title page? FALSE by default.

question_files

character. Paths to Rmd files with items. Best to have one file per author if there are multiple authors of exam items. See example_items.Rmd in package folder for the correct markdown.

Value

Function returns a data.frame with following columns:

  • title_page Text of the title page

  • yaml YAML front matter

Week, and difficulty are extracted from the question tag, e.g. 02S for week 2, simple. See example_items.Rmd in package folder for the correct markdown.

Examples

boiler <- sussex.boilerplate(module = "Analysing Data",
                             module_code = "C8891",
                             exam_diet = "BSc FIRST YEAR EXAMINATION May/June 2020 (A2)",
                             time_allowed = "2 hours",
                             n_sections = 1,
                             marks_per_q = 2,
                             section_weights = NULL,
                             sample = F)

mivalek/teachR documentation built on Aug. 26, 2022, 6 a.m.