existArg: Test if named arguments exists

Description Usage Arguments Details Value See Also Examples

View source: R/existArg.R

Description

Test if named arguments exists

Usage

1

Arguments

args

Argument names, without leading minus sign

Details

Options are those arguments with a leading minus sign (e.g. "-opt"). This function tells whether queried options exist in the argument list.

Value

A vector of logicals, indicating whether the arguments exist

See Also

getArg

Examples

1
2
3
4
comm <- paste(c("Rscript --vanilla -e", "'", "library(ribiosArg);",
             "existArg(c(\"opt\", \"opt2\", \"opt3\"))", "'",
              "-opt abc -opt3"), collapse=" ")
system(comm)

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