This help topic is for R version 0.60. For the current version of R, try https://stat.ethz.ch/R-manual/R-patched/library/base/html/Foreign.html
Foreign {base}R Documentation

Foreign Function Interface

Usage

.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.


[Package base version 0.60 ]