addAllFiles: Add a bunch of files to a data repository

Description Usage Arguments Value

Description

This just wraps addFile so that a data frame of arguments can be provided; addFile will be called iteratively with each one. The vector of check results from each addFile call is compressed with checkSummary into a single string, merging the result from all attempted addFile 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 addFile, one column per argument. Column names are used to match arguments, not positions. Extra columns ignored. Must have a column named file, and that column may not contain duplicate files. Any addFile arguments for which no columns are provided will use the normal addFile 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 copied and verified to be copied without error, a missing value if the status of the copy is unknown, and a string describing the error if anything else went wrong.


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