use_testex_as_testthat {testex}R Documentation

Run examples as testthat expectations

Description

Run examples as testthat expectations

Usage

use_testex_as_testthat(path = getwd(), context = "testex", quiet = FALSE)

Arguments

path

A package source code working directory

context

A testthat test context to use as the basis for a new test filename.

quiet

Whether to emit output messages.

Value

The result of writeLines() after writing a new testthat file.


[Package testex version 0.2.0 Index]