| Line 1... |
Line 1... |
| 1 |
% File src/library/base/man/Foreign.Rd
|
1 |
% File src/library/base/man/Foreign.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-2013 R Core Team
|
3 |
% Copyright 1995-2018 R Core Team
|
| 4 |
% Distributed under GPL 2 or later
|
4 |
% Distributed under GPL 2 or later
|
| 5 |
|
5 |
|
| 6 |
\name{CallExternal}
|
6 |
\name{CallExternal}
|
| 7 |
\alias{.Call}
|
7 |
\alias{.Call}
|
| 8 |
\alias{.External}
|
8 |
\alias{.External}
|
| Line 37... |
Line 37... |
| 37 |
|
37 |
|
| 38 |
\details{
|
38 |
\details{
|
| 39 |
The functions are used to call compiled code which makes use of
|
39 |
The functions are used to call compiled code which makes use of
|
| 40 |
internal \R objects, passing the arguments to the code as a sequence
|
40 |
internal \R objects, passing the arguments to the code as a sequence
|
| 41 |
of \R objects. They assume C calling conventions, so can usually
|
41 |
of \R objects. They assume C calling conventions, so can usually
|
| 42 |
also be used of C++ code.
|
42 |
also be used for C++ code.
|
| 43 |
|
43 |
|
| 44 |
For details about how to write code to use with these functions see
|
44 |
For details about how to write code to use with these functions see
|
| 45 |
the chapter on \sQuote{System and foreign language interfaces} in
|
45 |
the chapter on \sQuote{System and foreign language interfaces} in
|
| 46 |
the \sQuote{Writing \R Extensions} manual. They differ in the way the
|
46 |
the \sQuote{Writing \R Extensions} manual. They differ in the way the
|
| 47 |
arguments are passed to the C code: \code{.External} allows for a
|
47 |
arguments are passed to the C code: \code{.External} allows for a
|
| 48 |
variable number of arguments.
|
48 |
variable or unlimited number of arguments.
|
| 49 |
|
49 |
|
| 50 |
These functions are \link{primitive}, and \code{.NAME} is always
|
50 |
These functions are \link{primitive}, and \code{.NAME} is always
|
| 51 |
matched to the first argument supplied (which should not be named).
|
51 |
matched to the first argument supplied (which should not be named).
|
| 52 |
For clarity, avoid using names in the arguments passed to \code{\dots}
|
52 |
For clarity, avoid using names in the arguments passed to \code{\dots}
|
| 53 |
that match or partially match \code{.NAME}.
|
53 |
that match or partially match \code{.NAME}.
|