is_test: Flag lines that contain test code

Description Usage Arguments Value

View source: R/exercise.R

Description

This function assumes that tests begin with the line containing a 'flag' and continue until the end of the file.

Usage

1

Arguments

lines

character vector of exercise code lines

Value

a logical vector indicating which lines contain test code


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