get.quick.com: Mark coursework assignment Rmd

View source: R/get_quick_com.R

get.quick.comR Documentation

Mark coursework assignment Rmd

Description

For Rmd submissions of reports and other coursework. Function checks word count and inserts space for feedback.

Usage

get.quick.com(csv_path, rubric, output_dir, warn_col = "#cc0000", code_col = "#b38ed2", tabbed = T, keep_rmd = F)

Arguments

csv_path

character. Path or URL of a csv file from which to extract quick comments.

rubric

character. Sourceable file that produces a rubric list object from which to get colours of buttons so that they match colours of rubric criteria from mark(). See URL in example.

output_dir

character. Which study to get correct results for? Currently either "red" or "green".

warn_col

numeric. Hex code of colour for general comments.

code_col

numeric. Hex code of colour for comments in code.

tabbed

logical. Should sections be tabs (TRUE; default) or FAQ-style buttons (HTML <details>)?

keep_rmd

logical. Should the source .Rmd file be kept (in working directory)? FALSE by default.

Value

Function produces a HTML document saved in output_dir.

Examples

get.quick.com(csv_path = "https://docs.google.com/spreadsheets/d/19CXCZk28CQzX4MzQ86a5U-ijYQvP47x0mfX7pQk6KKo/export?gid=588770828&format=csv",
rubric = "https://raw.githubusercontent.com/SussexPsychMethods/and_pub/master/marking/sussex_rubric.R",
output_dir = "../mivalek_io/adata/marking/")

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