Learn R Programming

fame (version 1.13)

commandLineString: Command Line Arguments

Description

commandLineString returns whatever followed --args on the command line that started R.

Usage

commandLineString()

Arguments

See Also

commandArgs

Examples

Run this code
if(length(.cmd <- commandLineString()) > 0)
    try(source(textConnection(.cmd), echo = T, prompt.echo = "> "))

Run the code above in your browser using DataLab