| Line 1... |
Line 1... |
| 1 |
% File src/library/utils/man/example.Rd
|
1 |
% File src/library/utils/man/example.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-2015 R Core Team
|
3 |
% Copyright 1995-2019 R Core Team
|
| 4 |
% Distributed under GPL 2 or later
|
4 |
% Distributed under GPL 2 or later
|
| 5 |
|
5 |
|
| 6 |
\name{example}
|
6 |
\name{example}
|
| 7 |
\alias{example}
|
7 |
\alias{example}
|
| 8 |
\title{Run an Examples Section from the Online Help}
|
8 |
\title{Run an Examples Section from the Online Help}
|
| Line 42... |
Line 42... |
| 42 |
number generator state is saved, then initialized to a specified state,
|
42 |
number generator state is saved, then initialized to a specified state,
|
| 43 |
the example is run and the (saved) state is restored.
|
43 |
the example is run and the (saved) state is restored.
|
| 44 |
\code{setRNG = TRUE} sets the same state as
|
44 |
\code{setRNG = TRUE} sets the same state as
|
| 45 |
\command{R CMD \link{check}} does for
|
45 |
\command{R CMD \link{check}} does for
|
| 46 |
running a package's examples. This is currently equivalent to
|
46 |
running a package's examples. This is currently equivalent to
|
| 47 |
\code{setRNG = \{RNGkind("default", "default"); set.seed(1)\}}.}
|
47 |
\code{setRNG = \{RNGkind("default", "default", "default"); set.seed(1)\}}.}
|
| 48 |
\item{ask}{logical (or \code{"default"}) indicating if
|
48 |
\item{ask}{logical (or \code{"default"}) indicating if
|
| 49 |
\code{\link{devAskNewPage}(ask = TRUE)} should be called
|
49 |
\code{\link{devAskNewPage}(ask = TRUE)} should be called
|
| 50 |
before graphical output happens from the example code. The value
|
50 |
before graphical output happens from the example code. The value
|
| 51 |
\code{"default"} (the factory-fresh default) means to ask if
|
51 |
\code{"default"} (the factory-fresh default) means to ask if
|
| 52 |
\code{echo == TRUE} and the graphics device appears to be
|
52 |
\code{echo == TRUE} and the graphics device appears to be
|