Learn R Programming

scriptests (version 1.0-16)

Transcript-Based Unit Tests that are Easy to Create and Maintain

Description

Support for using .Rt (transcript) tests in the tests directory of a package. Provides more convenience and features than the standard .R/.Rout.save tests. Tests can be run under R CMD check and also interactively. Provides source.pkg() for quickly loading code, DLLs, and data from a package for use in an edit/compile/test development cycle.

Copy Link

Version

Install

install.packages('scriptests')

Monthly Downloads

61

Version

1.0-16

License

GPL

Maintainer

Last Published

July 22nd, 2016

Functions in scriptests (1.0-16)

plus

addition
scriptests-package

Support for running transcript-style tests
compareTranscriptAndOutput

Compare desired and actual output from running transcript-style tests.
runScripTests

Run the tests in the tests directory of a package
source.pkg

Quickly load code and data of a package
ScripDiff

Support functions for package scriptests
parseTranscriptFile

Parse a R transcript file into blocks of commands and output
scriptests.design

Design considerations for package scriptests
runtests

Interactively run some Rt test files in a package