addSwitch: FUSION R command line interface - Build text string for a...

View source: R/CoreFunctions.R

addSwitchR Documentation

FUSION R command line interface – Build text string for a command line option.

Description

This is a helper function used in the fusionwrapr package to build the text string for command line switches. The resulting string is appended to cl.

Usage

addSwitch(cl, opt)

Arguments

cl

character string. Potentially contains other command line elements.

opt

object containing the boolean switch value. The name of the object is used when constructing the option text. The option is only included when the value is TRUE.

Value

A (invisible) string containing the modified cl string.

Examples

## Not run: 
addOption(cl, zmin)

## End(Not run)

bmcgaughey1/fusionwrapr documentation built on Dec. 1, 2024, 7:13 a.m.