clean_filename: clean a file name

Description Usage Arguments Details Value Examples

View source: R/copy_files.R

Description

given a file to copy, generates a new file name stripped of special characters

Usage

1
clean_filename(in_file, replace_special = "-")

Arguments

in_file

the file to copy

replace_special

what to use to replace anything besides dot

Details

This function creates a new file name that is stripped of special characters. The following characters are replaced by a period: " ", ":", "~", "'". A leading "~" will be replaced by space.

Value

character

Examples

1
clean_filename("badly:formatted~file name(sample1)")

rmflight/waitcopy documentation built on May 24, 2019, 6:18 a.m.