[ top | up ]

Foreign Function Interface

Syntax

.C(name, ..., NAOK=FALSE)
.Fortran(name, ..., NAOK=FALSE)

Arguments

name a character string giving the name of a C function or Fortran subroutine.
... arguments to be passed to the foreign function.
NAOK if TRUE then any NA values in the arguments are passed on to the foreign function. If FALSE, the presence of NA values is regarded as an error.

Value

The functions .C and .Fortran can be used to make calls to C and Fortran code. The functions return a list similar to the ... list of arguments passed in, but reflecting any changes made by the C or Fortran code.

These calls are typically made in conjunction with dyn.load which links DLLs to R.

See Also

dyn.load.