run_tuner {autoharp} | R Documentation |
Runs the student-facing feedback app
Description
This function runs the shiny app that students submit to in order to obtain feedback on their Rmd submission file.
Usage
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,
...
)
Arguments
app_title |
A character string of the title of the app. |
soln_templates_dir |
This should be the directory containing all solution templates. Solution templates are Rmd files. |
knit_wd |
The working directory for knitting (to HTML). |
tabs |
A character vector of type of check to be done |
lint_list |
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. |
corr_cols_to_drop |
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. |
max_time |
The maximum time (in seconds) allocated to rendering before
failing. This is passed on to |
summary_header |
This the header to search for when generating the description for the correctness check. |
permission_to_install |
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. |
Details
If the lint_list
argument is missing, the following list of
lints is run:
T_and_F_symbol_linter,
assignment_linter,
closed_curly_linter,
commas_linter,
equals_na_linter,
function_left_parentheses_linter,
infix_spaces_linter,
line_length_linter,
no_tab_linter,
open_curly_linter,
paren_brace_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
.
Value
This function is run for its side-effect.