Description Usage Arguments Value
Creates a symbolic link pointing to a target in the repository. The target
must exist, and if any validation information is included, the target must
match. What to do if the link to be created has the same name as an existing
file system object depends on duplicateOk
and onExists
. By
default failure will be returned unless the file system object is already a
link to the target, or if it is an exact copy of the duplicate. Successful
linking is reported as a vector of empty strings. Problems are reported with
one or more non-empty elements.
1 2 3 |
file |
The symbolic link to create. Assuming all optional elements are
specified, the target of this link in the repository will be
|
repo |
The base directory for the file to be linked to. By default will use the current directory if not specified. |
entry |
A subdirectory or subdirectory tree in the repo where the target
file is expected to be found. By default this is NULL, indicating the root
|
asFile |
The base name of the target file in the repository. By default
this is the base name of |
fileSize |
The expected size of the target file, in bytes. By default
this is |
checksum |
The expected checksum of the target file. By default this is
|
checksumFunc |
The function or function name (as a string) that will be
used when calculating checksums. The calculated target file checksum will
be verified against any provided checksums before linking, and this may
also be used if |
onExists |
What to do if the link name already exists on the file
system. May not be applied if the existing file is a duplicate of the
target, as defined by |
duplicateOk |
By default |
A named vector of validation results. Each element is named for a
check performed, and will be the empty string if the check succeeded, a
failure string if the check failed, and a missing value if the check was
not performed (i.e. was not wanted or previous checks failed making further
checking irrelevant.) Can be summarized with checkSummary
.
The elements are named 'checkParam_file', 'checkParam_repo',
'checkParam_entry', 'checkParam_asFile', 'checkParam_checksumFunc',
'checkParam_onExists', 'checkParam_duplicateOk', 'checkTarget',
'checkExists', 'createLink', 'unexpectedError'
, in order.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.