The R Project SVN R

Rev

Rev 81843 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 81843 Rev 85065
Line 15... Line 15...
15
           keep.source = getOption("keep.source.pkgs"),
15
           keep.source = getOption("keep.source.pkgs"),
16
           keep.parse.data = getOption("keep.parse.data.pkgs"),
16
           keep.parse.data = getOption("keep.parse.data.pkgs"),
17
           toplevel.env = as.environment(envir))
17
           toplevel.env = as.environment(envir))
18
}
18
}
19
\arguments{
19
\arguments{
20
  \item{file}{a character string naming the file to be read from}
20
  \item{file}{a character string naming the file to be read from.}
21
  \item{envir}{an \R object specifying the environment in which the
21
  \item{envir}{an \R object specifying the environment in which the
22
    expressions are to be evaluated.  May also be a list or an integer.
22
    expressions are to be evaluated.  May also be a list or an integer.
23
    The default \code{\link{baseenv}()} corresponds to evaluation in the base
23
    The default \code{\link{baseenv}()} corresponds to evaluation in the base
24
    environment.  This is probably not what you want; you should
24
    environment.  This is probably not what you want; you should
25
    typically supply an explicit \code{envir} argument, see the
25
    typically supply an explicit \code{envir} argument, see the
Line 32... Line 32...
32
  \item{keep.parse.data}{logical.  If \code{TRUE} and \code{keep.source} is
32
  \item{keep.parse.data}{logical.  If \code{TRUE} and \code{keep.source} is
33
    also \code{TRUE}, functions keep parse data with their source, see
33
    also \code{TRUE}, functions keep parse data with their source, see
34
    \code{\link{options}(keep.parse.data = *)} for more details.}
34
    \code{\link{options}(keep.parse.data = *)} for more details.}
35
  \item{toplevel.env}{an \R environment to be used as top level while
35
  \item{toplevel.env}{an \R environment to be used as top level while
36
    evaluating the expressions.  This argument is useful for frameworks
36
    evaluating the expressions.  This argument is useful for frameworks
37
    running package tests; the default should be used in other cases}
37
    running package tests; the default should be used in other cases.}
38
}
38
}
39
\details{
39
\details{
40
  For large files, \code{keep.source = FALSE} may save quite a bit of
40
  For large files, \code{keep.source = FALSE} may save quite a bit of
41
  memory. Disabling only parse data via \code{keep.parse.data = FALSE}
41
  memory. Disabling only parse data via \code{keep.parse.data = FALSE}
42
  can already save a lot.
42
  can already save a lot.