tutorizeR is intended for instructors who maintain
statistical, data science, or R programming lessons in R Markdown or
Quarto. The package supports a source-first workflow: the instructor
edits one source document, then generates an interactive tutorial,
solution scaffolds, conceptual questions, and conversion reports from
that source.
This vignette describes plausible educational use cases. Actual classroom deployment and measured learning outcomes are not verifiable from repository contents.
An instructor can convert a lecture note into a pre-class activity. Students read the narrative, run short examples, answer MCQs, and complete a few code exercises before the in-person session.
library(tutorizeR)
course_dir <- file.path(tempdir(), "course")
output_dir <- file.path(course_dir, "tutorials", "preclass")
report <- tutorize(
input = file.path(course_dir, "lessons", "week03-data-visualization.qmd"),
output_dir = output_dir,
format = "learnr",
assessment = "both",
overwrite = TRUE
)
print(report)A laboratory handout can be maintained as a regular .qmd
file and converted into an interactive tutorial before release. Teacher
tags can mark which chunks become exercises, which chunks remain locked,
and which hints should be shown to students.
Question banks are useful when the same concepts appear across several modules. The instructor can store MCQs in YAML or JSON and reference them from different lessons.
library(tutorizeR)
course_dir <- file.path(tempdir(), "course")
output_dir <- file.path(course_dir, "tutorials")
question_bank <- load_question_bank(file.path(course_dir, "question-bank"))
report <- tutorize(
input = file.path(course_dir, "lessons", "week04-summarisation.qmd"),
output_dir = output_dir,
format = "learnr",
assessment = "both",
question_bank = question_bank,
mcq_source = "mixed",
overwrite = TRUE
)For courses with teaching assistants or multiple instructors, conversion reports can be saved and reviewed before distributing materials.
library(tutorizeR)
course_dir <- file.path(tempdir(), "course")
output_dir <- file.path(course_dir, "generated")
report <- tutorize(
input = file.path(course_dir, "lessons", "week05-models.qmd"),
output_dir = output_dir,
format = "learnr",
assessment = "both",
lint_strict = TRUE,
overwrite = TRUE
)
write_tutorize_report(
report = report,
file = file.path(output_dir, "week05-conversion-report.json"),
format = "json"
)The repository provides source code, tests, vignettes, reviewer documentation, and an installable example module. It does not currently provide anonymized classroom analytics, controlled learning studies, or external adoption records. Any future claim about classroom deployment or learning impact should be tied to verifiable evidence.