Compile a .dll/.so from source.
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
compiler_flags(TRUE)
.
compile_dll( path = ".", force = FALSE, compile_attributes = pkg_links_to_cpp11(path) || pkg_links_to_rcpp(path), register_routines = FALSE, quiet = FALSE, debug = TRUE )
path |
Path to a package, or within a package. |
force |
If |
compile_attributes |
if |
register_routines |
if |
quiet |
if |
debug |
If |
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 Makevars
file so that it
knows where to find the Rcpp headers:
PKG_CPPFLAGS=
$(R_HOME)/bin/Rscript -e 'Rcpp:::CxxFlags()'“
clean_dll()
to delete the compiled files.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.