R/optigrab-package.R

#' Optigrab  
#' 
#' @description 
#' The optigrab packages providesa function `opt_grab` to retrieve 
#' options/arguments from the command line.  It is useful for running R in 
#' batch mode with `R CMD BATCH ...` or `Rscript`.  
#' 
#' GNU-, Java- and Microsoft-style command line options are supported. GNU-style
#' is the default.
#' 
#' See the \emph{optigrab} vignettes or the github README file for details.
#'
#' 
#' @seealso 
#'   - [opt_get()]
#'   - [base::commandArgs()]
#' 
#' @references 
#'   - The Jerk. Dir. Carl Reiner. Perf Steve Martin, Bernadette Peters, 
#'   Caitlin Adams. Universal Pictures, 1979. \cr
#' 
#'   - [GNU Command line standards](http://www.gnu.org/prep/standards/standards.html}) 
#' 
#'   - [GSS Coder Commandline](https://github.com/gsscoder/commandline} \cr
#'   
#' @examples
#' 
#' \dontrun{ 
#'   opt_get( c("foo","f"))
#' }
#' 
#'   opts <- c( "--flag", "bar" ) 
#'   flag <- opt_get( c("foo","f"), opts=opts )  # bar
#'
#' @name optigrab
#' @docType package
#' @aliases optigrab-package 
#' @keywords package

NULL

Try the optigrab package in your browser

Any scripts or data that you put into this service are public.

optigrab documentation built on May 2, 2019, 2:10 a.m.