parseFiles: Parse files from command-line options

Description Usage Arguments Note

View source: R/parseFuncs.R

Description

Parse files from command line option, which can be (1) a string vector of files, (2) a file listing input files (e.g. pointer file), (3) a directory, or (4) a zip/tar/gz file (determined by suffix). In the later two cases, file patterns can be specified.

Usage

1
2
3
4
5
6
7
parseFiles(
  str,
  sep = ",",
  pattern = NULL,
  recursive = TRUE,
  ignore.case = TRUE
)

Arguments

str

A character string

sep

Seperator used in the string

pattern

Pattern string, if given, only files matching the pattern will be returned

recursive

In cse of directory or compressed files, whether files should be found recursively

ignore.case

In case of directory or compressed files, whether case should be ignored

Note

In case of compressed files, a temp dir will be created: the user should take care of cleaning up!


bedapub/ribiosArg documentation built on Nov. 4, 2021, 1:12 p.m.