The R Project SVN R

Rev

Rev 56186 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
42333 ripley 1
% File src/library/methods/man/LanguageClasses.Rd
2
% Part of the R package, http://www.R-project.org
59039 ripley 3
% Copyright 1995-2008 R Core Team
42333 ripley 4
% Distributed under GPL 2 or later
5
 
19087 jmc 6
\name{language-class}
7
\docType{class}
56186 murdoch 8
\alias{language-class}
19087 jmc 9
\alias{(-class}
10
\alias{<--class}
11
\alias{call-class}
12
\alias{for-class}
13
\alias{if-class}
14
\alias{repeat-class}
15
\alias{while-class}
16
\alias{name-class}
47307 ripley 17
\alias{\{-class}
23706 ripley 18
 
19087 jmc 19
\title{Classes to Represent Unevaluated Language Objects }
20
\description{  The virtual class \code{"language"} and the specific
21
  classes that extend it represent unevaluated objects, as produced for
22
  example by the parser or by functions such as \code{\link{quote}}.
23
}
24
\usage{
25
### each of these classes corresponds to an unevaluated object
44243 ripley 26
### in the S language.
27
### The class name can appear in method signatures,
19087 jmc 28
### and in a few other contexts (such as some calls to as()).
29
 
30
"("
31
"<-"
32
"call"
33
"for"
34
"if"
35
"repeat"
36
"while"
37
"name"
38
"\{"
39
 
40
### Each of the classes above extends the virtual class
41
"language"
42
}
19089 jmc 43
\section{Objects from the Class}{
44
  \code{"language"} is a virtual class; no objects may be created from
19087 jmc 45
  it.
46
 
19157 jmc 47
Objects from the other classes can be generated by a call to
19087 jmc 48
\code{new(Class, ...)}, where \code{Class} is the quoted class name, and
49
the \dots arguments are either empty or a \emph{single} object that is
50
from this class (or an extension).}
51
 
52
 
53
\section{Methods}{
54
  \describe{
55
    \item{coerce}{\code{signature(from = "ANY", to = "call")}.  A method
56
      exists for \code{as(object, "call")}, calling \code{as.call()}. }
57
  }
58
 
59
}
60
\keyword{classes}