grade_riddle: function for generating an exercise checker for a puzzlr...

Description Usage Arguments Value

View source: R/grade_riddle.R

Description

function for generating an exercise checker for a puzzlr challenge

Usage

1
2
3
4
5
6
7
8
9
grade_riddle(
  user_code,
  solution,
  test_inputs,
  test_timeouts = Inf,
  grace_timeouts = test_timeouts * 5,
  test_details = rep(list(NULL), length(test_inputs)),
  quoted = FALSE
)

Arguments

solution

solution code

envs

environments in which solution should be evaluated. these should contain the necessary input variables for the challenge.

Value

A shiny ui element displaying output from grading the question solution.


dgkf/riddlr documentation built on Oct. 24, 2020, 3:52 a.m.