Movatterモバイル変換


[0]ホーム

URL:


rdrr.io

commandArgs: Extract Command Line Arguments

commandArgsR Documentation

Extract Command Line Arguments

Description

Provides access to a copy of the command line arguments supplied whenthisR session was invoked.

Usage

commandArgs(trailingOnly = FALSE)

Arguments

trailingOnly

logical. Should only arguments after--args be returned?

Details

These arguments are captured before the standardR command lineprocessing takes place. This means that they are the unmodifiedvalues. This is especially useful with the--argscommand-line flag toR, as all of the command line after that flagis skipped.

Value

A character vector containing the name of the executable and theuser-supplied command line arguments. The first element is the nameof the executable by whichR was invoked. The exact form of thiselement is platform dependent: it may be the fully qualified name, orsimply the last component (or basename) of the application, or for anembeddedR it can be anything the programmer supplied.

IftrailingOnly = TRUE, a character vector of those arguments(if any) supplied after--args.

See Also

R.home(),StartupandBATCH

Examples

commandArgs()## Spawn a copy of this application as it was invoked,## subject to shell quoting issues## system(paste(commandArgs(), collapse = " "))

What can we improve?

R Package Documentation

Browse R Packages

We want your feedback!

Note that we can't provide technical support on individual packages. You should contact the package authors for that.

 
Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, readEmbedding Snippets.

Close

[8]ページ先頭

©2009-2025 Movatter.jp