See documentation of cmd_file_expect() for more details about how this works

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"))
#> $txt #> [1] "./myFile.txt" #> #> $html #> [1] "./myFile.html" #> #> $xml #> [1] "./myFile.xml" #>
# Makes list for many files of same type # ie myFile1.txt, myFile2.txt, myFile3.txt cmd_file_combn(c("myFile1", "myFile2", "myFile3"), "txt")
#> $myFile1 #> [1] "./myFile1.txt" #> #> $myFile2 #> [1] "./myFile2.txt" #> #> $myFile3 #> [1] "./myFile3.txt" #>