| Line 25... |
Line 25... |
| 25 |
\code{is.call} is used to determine whether \code{x} is a call (i.e.,
|
25 |
\code{is.call} is used to determine whether \code{x} is a call (i.e.,
|
| 26 |
of mode \code{"call"}).
|
26 |
of mode \code{"call"}).
|
| 27 |
%NO We don't differentiate between expressions and function calls.
|
27 |
%NO We don't differentiate between expressions and function calls.
|
| 28 |
%NO So \code{is.call} is the same as \code{is.expression}.
|
28 |
%NO So \code{is.call} is the same as \code{is.expression}.
|
| 29 |
It is generic: you can write methods to handle
|
29 |
It is generic: you can write methods to handle
|
| 30 |
of specific classes of objects, see \link{InternalMethods}.
|
30 |
specific classes of objects, see \link{InternalMethods}.
|
| 31 |
|
31 |
|
| 32 |
Objects of mode \code{"list"} can be coerced to mode \code{"call"}.
|
32 |
Objects of mode \code{"list"} can be coerced to mode \code{"call"}.
|
| 33 |
The first element of the list becomes the function part of the call,
|
33 |
The first element of the list becomes the function part of the call,
|
| 34 |
so should be a function or the name of one (as a symbol; a quoted
|
34 |
so should be a function or the name of one (as a symbol; a quoted
|
| 35 |
string will not do).
|
35 |
string will not do).
|