Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

cmdArgsCall

Calls an R function passing command-line arguments


Description

Calls an R function passing command-line arguments.

Usage

cmdArgsCall(..., args=cmdArgs(unique = FALSE), .ignoreUnusedArgs=FALSE,
  envir=parent.frame())

Arguments

...

Arguments passed to doCall(), including the function to be called.

args

A list of arguments to be passed to the function being called.

.ignoreUnusedArgs

Passed to doCall().

envir

An environment in which to evaluate the call.

Value

Returns whatever the called function returns.

Author(s)

Henrik Bengtsson

See Also

Internally, cmdArgs() and doCall() is used.

Examples

## Not run: 
  Rscript -e R.utils::cmdArgsCall(rnorm) n=4

## End(Not run)

R.utils

Various Programming Utilities

v2.10.1
LGPL (>= 2.1)
Authors
Henrik Bengtsson [aut, cre, cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.