TITLE(Foreign @@ Foreign Function Interface)
USAGE(
.C(name, DOTS, NAOK=FALSE)
.Fortran(name, DOTS, NAOK=FALSE)
)
ALIAS(.C)
ALIAS(.Fortran)
ARGUMENTS(
ARG(name @@
a character string giving the name of a C function or
Fortran subroutine.)
ARG(DOTS @@
arguments to be passed to the foreign function.)
ARG(NAOK @@
if LANG(TRUE) then any LANG(NA) values in the arguments
are passed on to the foreign function.
If LANG(FALSE), the presence of LANG(NA) values is
regarded as an error.)
)
VALUE(
The functions LANG(.C) and LANG(.Fortran) can be used to
make calls to C and Fortran code.
The functions return a list similar to the LANG(DOTS)
list of arguments passed in, but reflecting any
changes made by the C or Fortran code.
PARA
These calls are typically made in conjunction with
LANG(dyn.load) which links DLLs to R.
)
SEEALSO(
LANG(LINK(dyn.load)).
)
