linkAllTo: Link a bunch of files to a data repository

Description Usage Arguments Value

Description

This just wraps linkTo so that a data frame of arguments can be provided; linkTo will be called iteratively with each one. The vector of check results from each linkTo call is compressed with checkSummary into a single string, merging the result from all attempted linkTo operations into a character vector with one element for each file in the provided data frame (named with the file name) and a value string indicating success (empty) or describing failure. If a failure occurs with any file, a warning is given specifying the number of files with problems.

Usage

1

Arguments

df

A data frame of arguments to use in a call to linkTo, one column per argument. Column names are used to match arguments, not positions. Extra columns are ignored. Must have a column named file, and that column should not contain duplicate files. Any linkTo arguments for which no columns are provided will use the normal linkTo defaults.

Value

A character vector of problems, one element (named) for each file in the input data frame. The value of the element is an empty string if the file was linked to without error, a missing value if the status of the link is unknown, and a string describing the error if anything went wrong.


jefferys/DataRepo documentation built on May 19, 2019, 3:58 a.m.