ufs (version 0.5.12)

strToFilename: Convert a string to a safe filename

Description

Convert a string to a safe filename

Usage

strToFilename(str, ext = NULL)

Value

The string, processed to remove potentially problematic characters.

Arguments

str

The string to convert.

ext

Optionally, an extension to append.

Examples

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

Run the code above in your browser using DataLab