convert.spaces {TAF} | R Documentation |
Convert Spaces
Description
Convert spaces in filenames.
Usage
convert.spaces(file, sep = "_")
Arguments
file |
filename, e.g. |
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)
[Package TAF version 4.2.0 Index]