Berfungsi untuk melakukan panggilan ke kode terkompilasi yang telah dimuat ke dalam R.
.C(.NAME, …, NAOK = FALSE, DUP = TRUE, PACKAGE, ENCODING)
.Fortran(.NAME, …, NAOK = FALSE, DUP = TRUE, PACKAGE, ENCODING)
| Parameter | Deskripsi |
|---|---|
.NAME |
a character string giving the name of a C function or Fortran subroutine, or an object of class "NativeSymbolInfo", "RegisteredNativeSymbol" or "NativeSymbol" referring to such a name. |
… |
arguments to be passed to the foreign function. Up to 65. |
NAOK |
if TRUE then any NA or NaN or Inf values in the arguments are passed on to the foreign function. If FALSE, the presence of NA or NaN or Inf values is regarded as an error. |
PACKAGE |
if supplied, confine the search for a character string .NAME to the DLL given by this argument (plus the conventional extension, .so, .dll, …). This is intended to add safety for packages, which can ensure by using this argument that no other package can override their external symbols, and also speeds up the search (see ‘Note’). |
DUP, ENCODING |
For back-compatibility, accepted but ignored. |