This is a command-line argument parser which wraps the powerful Perl module Getopt::Long and with some adaptations for easier use in R. It also provides a simple way for variable interpolation in R.
Changes in version 0.1.7
code.pattern
can be a vector that all patterns are searched.get_scriptdir()
Changes in version 0.1.6
cat_strwrap
option in qq.options()
script_name
option to set alternative script nameChanges in version 0.1.5
Changes in version 0.1.4
head
and foot
arguments in GetoptLong()
which set the head and foot
of the help messageChanges in version 0.1.3
interactive()
to test whether under command-line modesource()
as internalsource
which also allow specifying arguments in interactive session.methods
packageGetOptions
which is the same as GetoptLong
GlobalOptions
packageqq
GlobalOptions
package to take care of the global settingscat_prefix
argument in qqcat
which is prior than options('cat_prefix')
and not globally effective.If command-line variable is a list, enforce the order of names of elements to be alphabetical (in testing file, tag=%i).
help
and version
will not be exported.
collapse
option in qq
so that qq
can return a vector instead of
only collapsing them into one string.