testFile | R Documentation |
Sometimes users send shared links to folders before all files have sync'd, so these files might not be valid when downloaded.
testFile(files, tests = 1:4)
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 |
integer vector of same length as files
, with values
from this list:
0: the file passes all tests
1: the file doesn't exist
2: the file is empty.
3: the file is non-empty but all zeroes
4: the file is non-empty and has a .gz, .bz2, .7z, .rar, or .zip extension, but fails the integrity test of the appropriate archiving program
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.
John Brzustowski jbrzusto@REMOVE_THIS_PART_fastmail.fm
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.