makeTestTable: Aids in the creation of tests for tables.

View source: R/test.R

makeTestTableR Documentation

Aids in the creation of tests for tables.

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

makeTestTable(rows, print = TRUE)

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


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


jasp-stats/JASPTools documentation built on April 24, 2024, 11:18 a.m.