- Now by default
getopt
won't override a user specifiedopt
argument ifargv
is in the global environment. Will continue to useargv
as a default foropt
if it is in the global environment and the user does not specify anopt
argument (forlittler
compatibility).
- Now allows one to pass an empty string to a character option. Thanks Matthew Flickinger for bug report.
- Now explicitly imports the
na.omit
method from thestats
package. Thanks Derrick Oswald for bug report. - Improved parsing for negative numbers preceded by a space instead of a '=' sign.
Thanks Roman Zenka for improved regular expression. - Slightly more informative error message if
storage.mode
coercion results in anNA
. Thanks Roman Zenka for suggestion.
- Type of "numeric" in spec automatically cast to "double".
Previously users might have had an error passing negative numbers if they accidentally specified "numeric" instead of "double". - Project website moved to https://github.com/trevorld/getopt
- Exports new function
sort_list
.
- If a passed in option matches multiple options in the getopt specification but matches one exactly
then
getopt
now uses that value instead of throwing a "long flag is ambiguous" error.
- Exports new function
get_Rscript_filename
that returns name of calling script,getopt
now uses this function value as default forcommand
argument - Documentation improved and now highlights differences
between
getopt
andoptparse
packages for new undecided users