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

linkTo.GenericDataFile

Creates a symbolic file link


Description

Creates a symbolic file link to a GenericDataFile at/from a given destination pathname.

Usage

## S3 method for class 'GenericDataFile'
linkTo(this, filename=getFilename(this), path=NULL, skip=!overwrite, overwrite=FALSE,
  ...)

Arguments

filename, path

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

skip

If TRUE and a file with the same name as argument link already exists, then the nothing is done.

overwrite

If TRUE, an existing link file is overwritten, otherwise not.

...

Additional arguments passed to createLink.

Value

Returns a GenericDataFile (of the same class as the source file) referring to the file via the link.

Required privileges on Windows

In order for this method to succeed on Windows, the client/R session must run with sufficient privileges. See createLink for more details.

Author(s)

Henrik Bengtsson

See Also

To copy a GenericDataFile, see *copyTo(). Internally createLink 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.