test_task: Test rmarkdown task

Description Usage Arguments Author(s) Examples

Description

This function takes a file, searches a kye_word line and then evaluate the first r chunk after the keyword. Then function compare ther result with the expected value.

Usage

1
test_task(expectations, file, keyword)

Arguments

expectations

an expected value.

file

an rmarkdown file or an r charactor vector.

keyword

a key_word to identify, where shuld be r chunk searched.

Author(s)

George Moroz <agricolamz@gmail.com>

Examples

1
2
test_task(expectations = 2+2, file = test_1, keyword = "### 1.1")
test_task(expectations = 2+3, file = test_1, keyword = "### 1.1")

agricolamz/AssignmentCheck documentation built on May 10, 2019, 7:34 a.m.