Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

copyTo.GenericDataFile

Safely copies a file to a new pathname


Description

Safely copies a file to a new pathname.

Usage

## S3 method for class 'GenericDataFile'
copyTo(this, filename=getFilename(this), path=NULL, ...)

Arguments

filename, path

The filename and the path for the destination file. The default is to use the same filename as the source file.

...

Additional arguments passed to copyFile.

Details

In order to minimize the risk for corrupt copies, the copyFile method of R.utils is used, which provides several protection against user, system and file errors.

Value

Returns a GenericDataFile (of the same class as the source file) referring to the new file copy.

Author(s)

Henrik Bengtsson

See Also

To link to a GenericDataFile, see *linkTo(). To rename a GenericDataFile, see *renameTo(). Internally copyFile is used. For more information see GenericDataFile.


R.filesets

Easy Handling of and Access to Files Organized in Structured Directories

v2.14.0
LGPL (>= 2.1)
Authors
Henrik Bengtsson [aut, cre, cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.