

   commandArgs {base}                           R Documentation

   EExxttrraacctt CCoommmmaanndd LLiinnee AArrgguummeennttss

   DDeessccrriippttiioonn::

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

   UUssaaggee::

        commandArgs()

   DDeettaaiillss::

        These arguments are captured before the standard R com-
        mand line processing takes place. This means that they
        are the unmodified values.  If it were useful, we could
        provide support an argument which indicated whether we
        want the unprocessed or processed values.

   VVaalluuee::

        A character vector containing the name of the exe-
        cutable and the user-supplied command line arguments.
        The first element is the name of the executable by
        which R was invoked. As far as I am aware, 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.

   SSeeee AAllssoo::

        `BATCH'

   EExxaammpplleess::

          commandArgs()
        # Spawn a copy of this  application as it was invoked.
        # system(paste(commandArgs(),collapse=" "))

