createLink {R.utils} | R Documentation |
Creates a link to a file or a directory. First it tries to create a (Unix-like) symbolic links and if that was not successful it tries to create a Windows Shortcut links. If neither works, an exception is thrown.
## Default S3 method: createLink(link, target, overwrite=FALSE, methods=c("unix-symlink", "windows-ntfs-symlink", "windows-shortcut"), ...)
link |
The path or pathname of the link to be created. |
target |
The target file or directory to which the shortcut should point to. |
overwrite |
If TRUE , an existing link file is overwritten,
otherwise not. |
methods |
A character vector specifying what methods (and in
what order) should be tried for creating links. |
... |
Not used. |
Returns (invisibly) the path or pathname to the destination.
Henrik Bengtsson (http://www.braju.com/R/)
createWindowsShortcut
()
file.symlink()