check_exercise_shiny: Check code lines for completed exercise in Shiny application

Description Usage Arguments Value

View source: R/exercise.R

Description

This version of the file check is completed when the trainr project type is "shiny". Checks the lines passed in as R code and outputs the results as 'message()'s, with '<span>'s for HTML formatting.

Usage

1

Arguments

lines

character vector of exercise code lines

test_lines

character vector of original test lines

Value

a list containing: 'success' a boolean indicating whether the code was evaluated successfully and passed all tests 'msg' a character vector of HTML formatted messages generated while evaluating the code


ericwburden/trainr documentation built on Jan. 28, 2022, 2:21 p.m.