Learn R Programming

Rkoans (version 0.1)

test_koan: Tests if the given answers pass all tests in the koan

Description

Tests if the given answers pass all tests in the koan

Usage

test_koan(name, answer, detail = FALSE)

Arguments

name
character the name of the koan matching the file name minus the file extension
answer
character vector of ordered answers for a koan (answers replace `_`)
detail
logical if TRUE, throws an exception detailing the position of the failing test. if false, returns false for a broken test

Value

logical or error (see param detail)