Rev 35183 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{demo}\alias{demo}\title{Demonstrations of R Functionality}\description{\code{demo} is a user-friendly interface to running some demonstration\R scripts. \code{demo()} gives the list of available topics.}\usage{demo(topic, package = NULL, lib.loc = NULL,character.only = FALSE, verbose = getOption("verbose"))}\arguments{\item{topic}{the topic which should be demonstrated, given as a\link{name} or literal character string, or a character string,depending on whether \code{character.only} is \code{FALSE} (default)or \code{TRUE}. If omitted, the list of available topics isdisplayed.}\item{package}{a character vector giving the packages to look into fordemos, or \code{NULL}. By default, all packages in the search pathare used.}\item{lib.loc}{a character vector of directory names of \R libraries,or \code{NULL}. The default value of \code{NULL} corresponds to alllibraries currently known. If the default is used, the loadedpackages are searched before the libraries.}\item{character.only}{logical; if \code{TRUE}, use \code{topic} ascharacter string.}\item{verbose}{a logical. If \code{TRUE}, additional diagnostics areprinted.}}\details{If no topics are given, \code{demo} lists the available demos. Thecorresponding information is returned in an object of class\code{"packageIQR"}. The structure of this class is experimental. Inearlier versions of R, an empty character vector was returned alongwith listing available demos.}\seealso{\code{\link{source}} which is called by \code{demo}.}\examples{demo() # for attached packages## All available demos:demo(package = .packages(all.available = TRUE))demo(lm.glm, package="stats")\dontrun{ch <- "scoping"demo(ch, character = TRUE)}}\keyword{documentation}\keyword{utilities}