check_tests: Check exercise file tests pass

Description Usage Arguments Value

View source: R/exercise.R

Description

Runs the R code, ensuring all tests pass

Usage

1
check_tests(file_lines, proj_path = getwd())

Arguments

file_lines

character vector of exercise file lines

proj_path

path to the project folder, optional

Value

a list containing: - 'success': logical value indicating whether the check succeeded - 'msg': character value indicating the success/failure message - 'output': character vector of the lines of test output


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