commandArgs {base} R Documentation

commandArgs: Extract Command Line Arguments

Description


Provides access to a copy of the command line arguments supplied when this R session was invoked.

Usage

commandArgs(
    trailingOnly = FALSE,
    parse.args = FALSE);

Arguments

trailingOnly

logical. Should only arguments after --args be returned?. [as boolean]

Details

These arguments are captured before the standard R command line processing takes place. This means that they are the unmodified values. This is especially useful with the --args command-line flag to R, as all of the command line after that flag is skipped.

Authors

SMRUCC genomics Institute

Value

A character vector containing the name of the executable and the user-supplied command line arguments. The first element is the name of the executable by which R was invoked. The exact form of this element is platform dependent: it may be the fully qualified name, or simply the last component (or basename) of the application, or for an embedded R it can be anything the programmer supplied. if trailingOnly = TRUE, a character vector Of those arguments (If any) supplied after --args.

clr value class

Examples


[Package base version 2.33.856.6961 Index]