Description Usage Arguments Value Examples
Checks first whether the code parses. If so, funs the code looking for errors. If any errors are found, a diagnostic message is returned.
1  | pre_check(user_code, soln_code = "hello")
 | 
user_code | 
 A character string containing the code to be checked. Note that this is a character string, not a checkr_result. Constructing a checkr_result requires that the code be evaluated, while this function is for pre-evaluation checking.  | 
soln_code | 
 Code, if any, containing a correct solution.  | 
A checkr_result object.
1 2  | code <- "lm(mpg ~ hp, data <- mtcars); plot(1:10); x <- 1\n y <- x^2\n\n z = cos(yy * xx^2)"
pre_check(code)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.