cmd_file_combn {cmdfun} | R Documentation |
Generates list of expected output files
Description
See documentation of cmd_file_expect() for more details about how this works
Usage
cmd_file_combn(prefix, ext, outdir = ".")
Arguments
prefix |
file name to be given each ext. If a character vector, must be equal length of ext or shorter |
ext |
file extension (no ".", ie "txt", "html") |
outdir |
optional directory where files should exist |
Value
list of file paths by each ext or prefix (whichever is longer)
Examples
# Makes list for many file types of same prefix
# ie myFile.txt, myFile.html, myFile.xml
cmd_file_combn("myFile", c("txt", "html", "xml"))
# Makes list for many files of same type
# ie myFile1.txt, myFile2.txt, myFile3.txt
cmd_file_combn(c("myFile1", "myFile2", "myFile3"), "txt")
[Package cmdfun version 1.0.2 Index]