Collect TESS cluster run files from multiple folders to one folder and rename each run by folder name

collectRunsTess(runsdir = NULL, newdir = NULL)

Arguments

runsdir

A character path indicating the directory containing TESS runs in multiple directories. To use current working directory, set runsdir=getwd(). Use choose.dir() for interactively selecting the directory.

newdir

A character indicating the name/path of the new directory to be created with the collected runs.

Value

Two integers are returned. The first denotes the number of TESS run files copied and renamed. The second number denotes number of directories without TESS run files.

Details

Within each TESS run folder, the function searches for filename ending with 'TR.txt' as the cluster file. This file is copied to the new folder and renamed as the name of the respective run directory. Therefore, DO NOT manually rename original run files or directories.

See the vignette for more details.

Examples

if (FALSE) { collectRunsTess(runsdir=getwd(),newdir="output") }