extract_test_block: Extract testing blocks from the parse-data.

Description Usage Arguments Value

View source: R/testing_blocks.R

Description

Extract the content of a testing block as a character vector of lines. The name, which is attached as an attribute is taken from the info string or inferred by location, see Details.

Usage

1
2
3
4
extract_test_block(
  id = all_tagged_iff_block_ids(pd, .testing.tags),
  pd = get("pd", parent.frame())
)

Arguments

id

iff block id, not the content

pd

a parse-data object.

Value

a character vector with the lines for the specific test(s) with the name of the test included as an attribute.


parsetools documentation built on April 14, 2020, 5:32 p.m.