## ----include = FALSE----------------------------------------------------------
knitr::opts_chunk$set(collapse = TRUE, comment = "#>")

## ----eval=FALSE---------------------------------------------------------------
# library(tutorizeR)
# 
# example_dir <- system.file("examples", "example_course_module", package = "tutorizeR")

## ----eval=FALSE---------------------------------------------------------------
# work_dir <- file.path(tempdir(), "tutorizeR-scenario")
# dir.create(work_dir, recursive = TRUE, showWarnings = FALSE)
# 
# file.copy(file.path(example_dir, "lesson-source.qmd"), work_dir, overwrite = TRUE)
# file.copy(file.path(example_dir, "student_activity.csv"), work_dir, overwrite = TRUE)
# 
# qb <- load_question_bank(file.path(example_dir, "question-bank"))
# 
# report <- tutorize(
#   input = file.path(work_dir, "lesson-source.qmd"),
#   output_dir = work_dir,
#   format = "learnr",
#   assessment = "both",
#   question_bank = qb,
#   mcq_source = "mixed",
#   overwrite = TRUE,
#   verbose = FALSE
# )

## ----eval=FALSE---------------------------------------------------------------
# print(report)
# 
# write_tutorize_report(
#   report = report,
#   file = file.path(work_dir, "conversion-report.json"),
#   format = "json"
# )

## ----eval=FALSE---------------------------------------------------------------
# library(tutorizeR)
# 
# example_dir <- system.file("examples", "example_course_module", package = "tutorizeR")
# source(file.path(example_dir, "run-example.R"))

