Individual and tem-based Readiness Assessment Tests (iRAT/tRAT) are an important component of the Team-Based Learning (TBL) style flipped classroom. However, they can be tedious to generate and modify over time because of the requirement to fit a specific IF-AT answer key. This package provides tools to generate RATs in HTML, PDF or Word format straight from a collection of questions, answer options, and answer keys maintained in Excel. Due to the use of the RMarkdown document format, it is easy to customize RAT worksheets and all RMarkdown supported text formatting is supported for questions and answers (including complex Latex equations and PNG/JPG images).

Software requirements

To generate an HTML, PDF or Word document for an iRAT/tRAT, you need the following software installed:

Getting started

The easiest way to get started is to run the following chunk in your R console (adjust the parameters as appropriate for your RAT):

set.seed(42) # to make sure the documentation stays constant
knitr::opts_chunk$set(collapse = TRUE, comment = "#>")
library(tbltools)
tbl_setup_RAT_template(
  module = "module",
  n_questions = 10,
  n_options_per_q = 5
)
file.copy(file.path("module", "module.Rmd"), to = ".", overwrite = TRUE)
file.copy(file.path("module", "module.xlsx"), to = ".", overwrite = TRUE)
unlink("module", recursive = TRUE)

That's it, you have successfully generated an RAT template! The new RAT starts out with place holder questions and answers in the generated module.xlsx file (note that if you changed the module parameter above, the file named accordingly). You can see what the resulting RAT would look like simply by opening and knitting the module.Rmd (again, file name corresponds to your module parameter) to the desired document format. If you do this for the first time, RStudio may ask you to install some additional packages and software including pandoc. If you are not working in RStudio, you will have to manually knit the document and call pandoc to generate the PDF.

See the resulting HTML, PDF, and Word files.

Customizing your iRAT/tRAT

You can design your RAT any way you like by modifying:

After making any edits, simply re-knit the Rmarkdown file to HTML, PDF or Word. For a few examples on some of the customization options, please see the Demo RAT below.

Demo RAT

For an example of a full RAT that demonstrates several customization features, please run the following code in your R console. This will create a demo subfolder in your working directory with the RAT demo.Rmd and demo.xlsx files (+ image files used in the RAT). As with the tbl_setup_RAT_template above, you can simply knit the Rmd file to generate the RAT yourself or take a look at the resulting HTML, PDF, and Word files online.

library(tbltools)
tbl_setup_RAT_demo()
file.copy(list.files("demo", full.names = TRUE), to = ".", overwrite = TRUE)
unlink("demo", recursive = TRUE)


KopfLab/tbltools documentation built on July 30, 2023, 11:16 p.m.