renameFile | R Documentation |
Renames a file (or a directory) atomically/safely, by also asserting that it was successfully renamed without side effects. If failing to rename and overwrite an existing file, the original file is kept.
## Default S3 method:
renameFile(pathname, newPathname, overwrite=FALSE, ..., verbose=FALSE)
pathname |
The pathname of the file to be renamed. |
newPathname |
The new pathname.
If an existing directory and the source is a file, then the
destination becomes |
overwrite |
If |
... |
Not used. |
verbose |
See |
Returns TRUE
if the file was successfully renamed.
If it failed, an exception is thrown.
Henrik Bengtsson
file.rename()
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.