Skip to contents

Writes the tables behind cr_example_experiment() in the layouts the cr_read_* importers understand, so that the import functions can be demonstrated on real files without any being shipped.

Usage

cr_example_files(dir = tempdir(), seed = 42)

Arguments

dir

Directory to write into. Created when it does not exist.

seed

Seed passed to cr_example_experiment().

Value

A character vector of the written file paths, invisibly.

See also

cr_example_exports() for a nested export tree with the design encoded in the paths, cr_example_path() for the files shipped inside the package.

Other example data: cr_example_design(), cr_example_experiment(), cr_example_exports(), cr_example_path(), cr_example_screen()

Examples

d <- file.path(tempdir(), "cr_example_files")
files <- cr_example_files(d, seed = 1)
basename(files)
#> [1] "cells.csv"              "design.xlsx"            "cells_cellprofiler.csv"
#> [4] "cells_qupath.tsv"