convert.spaces: Convert Spaces

View source: R/convert.spaces.R

convert.spacesR Documentation

Convert Spaces

Description

Convert spaces in filenames.

Usage

convert.spaces(file, sep = "_")

Arguments

file

filename, e.g. "file name.csv", "*.csv", or "dir/*".

sep

character to use instead of spaces.

Value

TRUE for success, FALSE for failure, invisibly.

Note

This function treats ‘%20’ in filenames as a space and converts to sep.

See Also

file.rename is the base function to rename files.

TAF-package gives an overview of the package.

Examples

## Not run: 
write(pi, "A B.txt")
convert.spaces("A B.txt")

## Many files
convert.spaces("boot/initial/data/*")

## End(Not run)


TAF documentation built on March 31, 2023, 6:51 p.m.