strToFilename: Convert a string to a safe filename

View source: R/strToFilename.R

strToFilenameR Documentation

Convert a string to a safe filename

Description

Convert a string to a safe filename

Usage

strToFilename(str, ext = NULL)

Arguments

str

The string to convert.

ext

Optionally, an extension to append.

Value

The string, processed to remove potentially problematic characters.

Examples

strToFilename("this contains: illegal characters, spaces, et cetera.");

ufs documentation built on Aug. 8, 2025, 7:38 p.m.