View source: R/convert.spaces.R
convert.spaces | R Documentation |
Convert spaces in filenames.
convert.spaces(file, sep = "_")
file |
filename, e.g. |
sep |
character to use instead of spaces. |
TRUE
for success, FALSE
for failure, invisibly.
This function treats ‘%20’ in filenames as a space and converts to
sep
.
file.rename
is the base function to rename files.
TAF-package
gives an overview of the package.
## Not run:
write(pi, "A B.txt")
convert.spaces("A B.txt")
# Many files
convert.spaces("boot/initial/data/*")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.