R binding to minimist JavaScript library
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
R
inst
man
.Rbuildignore
.gitignore
.travis.yml
DESCRIPTION
LICENSE
NAMESPACE
README.md
appveyor.yml
minimist.Rproj

README.md

minimist

Parse Argument Options

Build Status AppVeyor Build Status Coverage Status CRAN_Status_Badge CRAN RStudio mirror downloads Github Stars

A binding to the minimist JavaScript library. This module implements the guts of optimist's argument parser without all the fanciful decoration.

Hello World

minimist()
minimist(c("-a", "beep", "-b", "boop"))
args = c("-x", "3", "-y", "4", "-n5", "-abc", "--beep=boop", "foo", "bar", "baz")
minimist(args)

Installation

Binary packages for OS-X or Windows can be installed directly from CRAN:

install.packages("minimist")

To install on Linux have a look at V8 installation instructions.