-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit f1756a3
Showing
11 changed files
with
96 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
^.*\.Rproj$ | ||
^\.Rproj\.user$ | ||
.V8history |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.Rproj.user | ||
.Rhistory | ||
.RData | ||
.V8history | ||
*/.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Package: minimist | ||
Type: Package | ||
Title: Parse Argument Options | ||
Version: 0.1 | ||
Date: 2015-02-14 | ||
Author: Jeroen Ooms, James Halliday | ||
Maintainer: Jeroen Ooms <jeroen.ooms@stat.ucla.edu> | ||
Description: A binding to the minimist JavaScript library. This module implements | ||
the guts of optimist's argument parser without all the fanciful decoration. | ||
License: MIT + file LICENSE | ||
Imports: V8 (>= 0.5) | ||
URL: https://github.com/jeroenooms/minimist, https://www.npmjs.com/package/minimist | ||
BugReports: https://github.com/jeroenooms/minimist/issues |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
YEAR: 2015 | ||
COPYRIGHT HOLDER: Jeroen Ooms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Generated by roxygen2 (4.1.0): do not edit by hand | ||
|
||
export(minimist) | ||
importFrom(V8,new_context) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#' Parse argument options | ||
#' | ||
#' This module is the guts of optimist's argument parser without all the fanciful | ||
#' decoration. | ||
#' | ||
#' Parses a vector of strings (e.g. from \code{\link{commandArgs}}) into the proper key/value list. | ||
#' | ||
#' @export | ||
#' @param args a character vector with arguments | ||
#' @examples minimist() | ||
#' minimist(c("-a", "beep", "-b", "boop")) | ||
#' args = c("-x", "3", "-y", "4", "-n5", "-abc", "--beep=boop", "foo", "bar", "baz") | ||
#' minimist(args) | ||
minimist <- function(args = commandArgs()){ | ||
ct$call("minimist", as.list(args)) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#' @importFrom V8 new_context | ||
ct <- NULL | ||
.onLoad <- function(libname, pkgname){ | ||
ct <<- new_context(); | ||
ct$source(system.file("js/minimist.min.js", package = pkgname)) | ||
} |
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
% Generated by roxygen2 (4.1.0): do not edit by hand | ||
% Please edit documentation in R/minimist.R | ||
\name{minimist} | ||
\alias{minimist} | ||
\title{Parse argument options} | ||
\usage{ | ||
minimist(args = commandArgs()) | ||
} | ||
\arguments{ | ||
\item{args}{a character vector with arguments} | ||
} | ||
\description{ | ||
This module is the guts of optimist's argument parser without all the fanciful | ||
decoration. | ||
} | ||
\details{ | ||
Parses a vector of strings (e.g. from \code{\link{commandArgs}}) into the proper key/value list. | ||
} | ||
\examples{ | ||
minimist() | ||
minimist(c("-a", "beep", "-b", "boop")) | ||
args = c("-x", "3", "-y", "4", "-n5", "-abc", "--beep=boop", "foo", "bar", "baz") | ||
minimist(args) | ||
} | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Version: 1.0 | ||
|
||
RestoreWorkspace: Default | ||
SaveWorkspace: Default | ||
AlwaysSaveHistory: Default | ||
|
||
EnableCodeIndexing: Yes | ||
UseSpacesForTab: Yes | ||
NumSpacesForTab: 2 | ||
Encoding: UTF-8 | ||
|
||
RnwWeave: Sweave | ||
LaTeX: pdfLaTeX | ||
|
||
AutoAppendNewline: Yes | ||
StripTrailingWhitespace: Yes | ||
|
||
BuildType: Package | ||
PackageUseDevtools: Yes | ||
PackageInstallArgs: --no-multiarch --with-keep.source | ||
PackageRoxygenize: rd,namespace |