makeTestTable: Aids in the creation of tests for tables.

Description Usage Arguments Value Examples

View source: R/test.R

Description

This function is designed to make it easier to create unit tests for tables. It strips off attributes and flattens the structure until a list remains with dimension 1. Output is then produced which can be immediately placed in the test file.

Usage

1

Arguments

rows

A list with lists of rows (i.e., a JASP table).

print

Should the result be printed.

Value

Copy-paste ready output which may serve as the reference to test tables against.

Examples

1
2
3
4
options <- analysisOptions("BinomialTest")
options[["variables"]] <- "contBinom"
results <- runAnalysis("BinomialTest", "debug", options, view=FALSE)
makeTestTable(results[["results"]][["binomial"]][["data"]])

TimKDJ/JASPTools documentation built on July 21, 2021, 7:52 p.m.