powered by
Global options for GetoptLong()
GetoptLong.options(..., RESET = FALSE, READ.ONLY = NULL, LOCAL = FALSE, ADD = FALSE)
options, see 'details' section
Whether to reset options to their default values
only return read-only options?
switch local mode
add new options
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
Rscript foo.R --help
head
GetoptLong
endingMsg
message that will be printed after the helping message when running Rscript foo.R --help. Ignored if foot is set in GetoptLong
foot
config
configuration of Getopt::Long, check http://perldoc.perl.org/Getopt/Long.html#Configuring-Getopt%3a%3aLong
Getopt::Long
GetoptLong.options(...) should be put before calling GetoptLong function.
GetoptLong.options(...)
# NOT RUN { # There is no example NULL # }
Run the code above in your browser using DataLab