devtools (version 1.0)

compile_dll: Compile a .dll/.so from source

Description

Support for compiling C, C++, and Fotran code is experimental, and will probably only work for simple cases where the code is to be compiled into a single DLL. It will work with Makevars files, but not with Makefiles.

Usage

compile_dll(pkg = ".", quiet = FALSE)

Arguments

pkg
package description, can be path or package name. See as.package for more information
quiet
if TRUE suppresses output from this function.

Details

compile_dll will compile .c, .cpp, and .f files, and save the resulting DLL file in the same directory as the source code, /src/. Depending on the platform, the DLL file will have the extension .dll or .so.

Invisibly returns the names of the DLL.

See Also

clean_dll to delete the compiled files.