Skip to contents

Launch the markermd Template Creation Application

Usage

template(assignment_path, local_dir = NULL, filename = "*.[Rq]md", ...)

Arguments

assignment_path

Assignment source or existing template. Can be:

  • Character path to local directory containing assignment

  • Character GitHub repo in format "owner/repo"

  • Character path to .rds file containing markermd_template

  • markermd_template S7 object

local_dir

Character string. Local directory for cloning (required for remote GitHub repos, ignored for templates)

filename

Character string. Glob pattern to match Rmd/qmd file to grade (ignored for templates). Default glob matches any .Rmd or .qmd file.

...

Additional arguments passed to shiny::runApp()

Value

Launches Shiny application for template creation

Examples

if (FALSE) { # \dontrun{
# Local assignment with default pattern
template("/path/to/assignment")

# Local assignment with specific filename
template("/path/to/assignment", filename = "homework.Rmd")

# Remote GitHub repo
template("username/repo-name", local_dir = "/tmp/grading", filename = "assignment.qmd")

# Load existing template from file
template("/path/to/saved_template.rds")

# Load existing template from S7 object
my_template = readRDS("/path/to/template.rds")
template(my_template)
} # }