preview | R Documentation |
Wrapper for teachR::mark()
producing a temporary preview of commented HTML file in the RStudio Viewer pane.
preview( file, show_rmd = F, rubric_url = "https://raw.githubusercontent.com/SussexPsychMethods/and_pub/master/marking/sussex_rubric.R", fdbck_boiler_text = "https://raw.githubusercontent.com/SussexPsychMethods/and_pub/master/marking/fdbck_boilerplate.txt", install_missing_pkgs = F, rubric_btn_url = "https://mivalek.github.io/adata/marking/rubric_and_criteria_faq.html", flowchart_url = "https://raw.githubusercontent.com/mivalek/mivalek.github.io/master/adata/marking/AnD_report_flowchart.png", quick_comment_url = "https://mivalek.github.io/adata/marking/quick_comments.html", button_urls = "https://mivalek.github.io/adata/marking", height = "maximize" )
file |
Either path to .Rmd file to mark or, if working directory is set to the folder containing the file, ID number. |
rubric_url |
|
fdbck_boiler_text |
|
rubric_btn_url |
|
flowchart_url |
|
quick_comment_url |
|
Function knits the file in the temp directory (tempdir()
and opens it in RStudio's Viewer pane. Neither gubric grades nor marks are rendered. It requires all packages used in the Rmd report to be installed beforehand.
preview(file = "marking/AnD/2019-20/48323.Rmd")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.