Skip to content

Is there a package for generating standardized R script command line options?

1 message · Trevor Davis

#
I recently put a package on CRAN that tries to implement much of the 
functionality and approach of python's "optparse" library:

        http://cran.r-project.org/web/packages/optparse/

It contains a package vignette (use vignette("optparse") after installing 
the package) that illustrates an example program using optparse and trying 
it with various options on the command line.

The "getopt" package or manually parsing the command line remain good 
approaches too.

----------------------------------------------------------------------------
Trevor Davis
Research Assistant
Division of Research & Statistics
Federal Reserve Board of Governors