testFile: Test files for validity.

Description Usage Arguments Value Author(s)

Description

Sometimes users send shared links to folders before all files have sync'd, so these files might not be valid when downloaded.

Usage

1
testFile(files, tests = 1:4)

Arguments

files

vector of paths of files to check

tests

integer vector of tests to try; must be a subset of 1:4. Alternatively, this can be a list, in which case element tests[[i]] is an integer vector specifying the tests to be performed on the ith file. Default: 1:4

Value

integer vector of same length as files, with values from this list:

For each input file, the function returns either 0, or the number of the first test to fail. Tests are attempted in order of increasing number.

Author(s)

John Brzustowski jbrzusto@REMOVE_THIS_PART_fastmail.fm


jbrzusto/motus-R-package documentation built on May 18, 2019, 7:03 p.m.