This function runs the shiny app that students submit to in order to obtain feedback on their Rmd submission file.
run_tuner(
app_title,
soln_templates_dir,
knit_wd,
tabs = c("lint", "html", "correctness"),
lint_list,
corr_cols_to_drop = c(1, 2, 4, 5),
max_time = 120,
summary_header = "# Summary Output",
permission_to_install = FALSE,
...
)This function is run for its side-effect.
A character string of the title of the app.
This should be the directory containing all solution templates. Solution templates are Rmd files.
The working directory for knitting (to HTML).
A character vector of type of check to be done
A list of lints (from lintr package) to be run on the uploaded script. If missing, a default list of lints is run. See the details section.
This should be an integer vector of columns to drop from the correctness check. By default, the columns corresponding to filename, timestamp, run-time timing and memory are dropped.
The maximum time (in seconds) allocated to rendering before
failing. This is passed on to render_one.
This the header to search for when generating the description for the correctness check.
This is the argument to toggle for auto installation of libraries. Default is set to FALSE.
Extra arguments passed on to runApp from shiny. Useful for specifying port, etc.
If the lint_list argument is missing, the following list of
lints is run:
T_and_F_symbol_linter,
assignment_linter,
brace_linter,
commas_linter,
equals_na_linter,
function_left_parentheses_linter,
infix_spaces_linter,
line_length_linter,
no_tab_linter,
absolute_path_linter,
pipe_continuation_linter,
spaces_inside_linter,
trailing_blank_lines_linter,
trailing_whitespace_linter,
unneeded_concatenation_linter
The full list of available lints can be found here: linters.