convert.spaces: Convert Spaces

Description Usage Arguments Value Note See Also Examples

View source: R/convert.spaces.R

Description

Convert spaces in filenames.

Usage

1
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

1
2
3
4
5
6
7
8
## Not run: 
write(pi, "A B.txt")
convert.spaces("A B.txt")

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

## End(Not run)

TAF documentation built on April 7, 2021, 5:06 p.m.