check_placeholders: Check an exercise for missing arguments

Description Usage Arguments Value

View source: R/exercise.R

Description

Exercise files contain a number of '?' markers that should be filled in by the user. R interprets these as variables named ‘?', which of course don’t exist. Given the lines (as character vectors) of the exercise file, raises an informative error if any of those placeholders aren't filled in.

Usage

1
check_placeholders(file_lines)

Arguments

file_lines

character vector of exercise file lines

Value

a list containing: - 'success': logical value indicating whether the check succeeded - 'msg': character value indicating the success/failure message


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