Learn R Programming

Rcpp (version 0.10.6)

LdFlags: Provide Rcpp Linker Flags

Description

LdFlags and RcppLdFlags return the required flags and options for the system linker. This allows portable use of Rcpp as package location as well as operating-system specific details are abstracted away behind the interface of this function.

LdFlags is commonly called from the files Makevars (or Makevars.win) rather than in an interactive session.

Usage

LdFlags(static=staticLinking())
RcppLdFlags(static=staticLinking())

Arguments

static
A boolean determining use of static (as opposed to dynamic) linking; defaults to using the staticLinking() function which defaults to FALSE on Linux, and TRUE if the operating system is different from Linux.

Value

  • A character vector suitable by use by the system linker in order to create a library based on Rcpp.

Details

Thee functions are not meant to used interactively, and are intended solely for use by the build tools.

References

Dirk Eddelbuettel and Romain Francois (2011). Rcpp: Seamless R and C++ Integration. Journal of Statistical Software, 40(8), 1-18. URL http://www.jstatsoft.org/v40/i08/ and available as vignette("Rcpp-introduction").

See Also

The vignette Rcpp-package has more details.