Run an Examples section from the online help
Usage
example(topic, package= .packages(), lib=.lib.loc,
echo=TRUE, verbose=.Options$verbose,
prompt.echo = paste(abbreviate(topic, 6),"> ", sep=""),
directory.sep= "/")
Arguments
topic
|
name or character: The online help topic
the examples of which should be run.
|
package
|
a character vector with package names.
|
lib
|
a character vector with path names of R package libraries.
|
echo
|
logical; if TRUE , show the R input when sourcing.
|
verbose
|
logical; if TRUE , show even more when running
example code.
|
prompt.echo
|
character; gives the prompt to be used if
echo = TRUE .
|
directory.sep
|
character; the directory separating character (an
idea to make this OS independent).
|
Description
Run all the R code from the EXAMPLES
part of R's online help
topic topic
.Value
(the value of the last evaluated expression).Author(s)
Martin MaechlerSee Also
demo
Examples
example("smooth",package="eda")