Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…
Cannot retrieve contributors at this time
35 lines (31 sloc) 1005 Bytes
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/compile-dll.r
\title{Compile a .dll/.so from source.}
compile_dll(pkg = ".", quiet = FALSE)
\item{pkg}{package description, can be path or package name. See
\code{\link{as.package}} for more information}
\item{quiet}{if \code{TRUE} suppresses output from this function.}
\code{compile_dll} performs a fake R CMD install so code that
works here should work with a regular install (and vice versa).
During compilation, debug flags are set with
Invisibly returns the names of the DLL.
If this is used to compile code that uses Rcpp, you will need to
add the following line to your \code{Makevars} file so that it
knows where to find the Rcpp headers:
\code{PKG_CPPFLAGS=`$(R_HOME)/bin/Rscript -e 'Rcpp:::CxxFlags()'`}
\code{\link{clean_dll}} to delete the compiled files.
Jump to Line
Something went wrong with that request. Please try again.