Learn R Programming

GetoptLong (version 0.1.7)

GetoptLong.options: Global options for GetoptLong()

Description

Global options for GetoptLong()

Usage

GetoptLong.options(..., RESET = FALSE, READ.ONLY = NULL, LOCAL = FALSE, ADD = FALSE)

Arguments

...

options, see 'details' section

RESET

Whether to reset options to their default values

READ.ONLY

only return read-only options?

LOCAL

switch local mode

ADD

add new options

Details

Supported options are following:

startingMsg

message that will be printed before the helping message when running Rscript foo.R --help. Ignored if head is set in GetoptLong

endingMsg

message that will be printed after the helping message when running Rscript foo.R --help. Ignored if foot is set in GetoptLong

config

configuration of Getopt::Long, check http://perldoc.perl.org/Getopt/Long.html#Configuring-Getopt%3a%3aLong

GetoptLong.options(...) should be put before calling GetoptLong function.

Examples

Run this code
# NOT RUN {
# There is no example
NULL

# }

Run the code above in your browser using DataLab