Learn R Programming

R.filesets (version 2.15.1)

renameTo.GenericDataFile: Renames/moves a file

Description

Renames/moves a file.

Usage

# S3 method for GenericDataFile
renameTo(this, filename=getFilename(this), path=NULL, ..., verbose=FALSE)

Value

Returns the source GenericDataFile.

Arguments

filename, path

The filename and the path for the destination file. The default is to use the same filename as the source file. The destination pathname must not be the same as the source file, otherwise an exception is thrown.

...

Additional arguments passed to renameFile.

verbose

...

Author

Henrik Bengtsson

See Also

Internally renameFile. *copyTo(). For more information see GenericDataFile.