The R Project SVN R

Rev

Rev 81170 | Rev 85953 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 81170 Rev 81943
Line 1... Line 1...
1
% File src/library/utils/man/Rscript.Rd
1
% File src/library/utils/man/Rscript.Rd
2
% Part of the R package, https://www.R-project.org
2
% Part of the R package, https://www.R-project.org
3
% Copyright 1995-2021 R Core Team
3
% Copyright 1995-2022 R Core Team
4
% Distributed under GPL 2 or later
4
% Distributed under GPL 2 or later
5
 
5
 
6
\name{Rscript}
6
\name{Rscript}
7
\alias{Rscript}
7
\alias{Rscript}
8
\title{Scripting Front-End for R}
8
\title{Scripting Front-End for R}
9
\description{
9
\description{
10
  This is an alternative front end for use in \samp{#!} scripts and
10
  This is an alternative front end for use in \samp{#!} scripts and
11
  other scripting applications.
11
  other scripting applications.
12
}
12
}
13
\usage{
13
\usage{
-
 
14
\special{Rscript [options] file [args]}
14
\special{Rscript [options] [-e expr [-e expr2 ...] | file] [args]}
15
\special{Rscript [options] -e expr [-e expr2 ...] [args]}
15
}
16
}
16
\arguments{
17
\arguments{
17
  \item{options}{a list of options, all beginning with \samp{--}.  These
18
  \item{options}{a list of options, all beginning with \samp{--}.  These
18
    can be any of the options of the standard \R front-end, and also those
19
    can be any of the options of the standard \R front-end, and also those
19
    described in the details.}
20
    described in the details.}
Line 56... Line 57...
56
      environment variable \env{R_DEFAULT_PACKAGES} which determines the
57
      environment variable \env{R_DEFAULT_PACKAGES} which determines the
57
      packages loaded on startup.
58
      packages loaded on startup.
58
    }
59
    }
59
  }
60
  }
60
 
61
 
61
  Spaces are allowed in \code{expression} and \code{file} (but will need
62
  Spaces are allowed in \code{expr} and \code{file} (but will need
62
  to be protected from the shell in use, if any, for example by
63
  to be protected from the shell in use, if any, for example by
63
  enclosing the argument in quotes).
64
  enclosing the argument in quotes).
64
 
65
 
65
  If \option{--default-packages} is not used, then \command{Rscript}
66
  If \option{--default-packages} is not used, then \command{Rscript}
66
  checks the environment variable \env{R_SCRIPT_DEFAULT_PACKAGES}. If
67
  checks the environment variable \env{R_SCRIPT_DEFAULT_PACKAGES}. If