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

Compile Files for Use with R

Description

Compile given source files so that they can subsequently be collected into a shared library using R CMD SHLIB and be loaded into R using dyn.load().

Usage

R CMD COMPILE [options] srcfiles

Arguments

srcfiles

A list of the names of source files to be compiled. Currently, C, C++, Objective C, Objective C++ and FORTRAN are supported; the corresponding files should have the extensions ‘.c’, ‘.cc’ (or ‘.cpp’ or ‘.C’), ‘.m’, ‘.mm’ (or ‘.M’) and ‘.f’, respectively.

options

A list of compile-relevant settings, such as special values for CFLAGS or FFLAGS, or for obtaining information about usage and version of the utility.

Details

Note that Ratfor is not supported. If you have Ratfor source code, you need to convert it to FORTRAN. On many Solaris systems mixing Ratfor and FORTRAN code will work.

Objective C and Objective C++ support is optional and will work only if the corresponding compilers were available at R configure time.

Note

Some binary distributions of R have COMPILE in a separate bundle, e.g. an R-devel RPM.

See Also

SHLIB, dyn.load; the section on “Customizing compilation under Unix” in “R Administration and Installation” (see the ‘doc/manual’ subdirectory of the R source tree).


[Package utils version 2.9.0 ]