Skip to contents

Remove temporary mock files created by sn_get_example_value_with_mockdata and other mock data generation functions.

Usage

sn_cleanup_mockdata_examples(temp_dir = NULL, pattern = "*")

Arguments

temp_dir

Character. Directory containing temporary mock files. If NULL, cleans all default temporary directories.

pattern

Character. File pattern to match for deletion (default: all files).

Value

Logical. TRUE if cleanup was successful.

Examples

if (FALSE) { # \dontrun{
# Clean up all temporary mock files
sn_cleanup_mockdata_examples()

# Clean specific directory
sn_cleanup_mockdata_examples("/path/to/temp/dir")

# Clean only specific file types
sn_cleanup_mockdata_examples(pattern = "*.fastq*")
} # }