Skip to contents

[Stable]

Helper function to use mostly within tests. with_spacesparameter allows to test not only for content but also indentation and table structure. print_txt_to_copy instead facilitate the testing development by returning a well formatted text that needs only to be copied and pasted in the expected output.

Usage

to_string_matrix(x, with_spaces = FALSE, print_txt_to_copy = FALSE)

Arguments

x

rtables table.

with_spaces

Should the tested table keep the indentation and other relevant spaces?

print_txt_to_copy

Utility to have a way to copy the input table directly into the expected variable instead of copying it too manually.

Value

A matrix of strings