| CxxFlags {StanHeaders} | R Documentation |
Output the compiler or linker flags required to build with the StanHeaders package
CxxFlags(as_character = FALSE) LdFlags(as_character = FALSE)
as_character |
A logical scalar that defaults to |
These functions are currently not exported and are typically called from a Makevars or a Makevars.win file of another package as follows:
PKG_CXXFLAGS += $(shell "$R_HOME/bin/Rscript" -e "StanHeaders:::CxxFlags()") PKG_LDLIBS += $(shell "$R_HOME/bin/Rscript" -e "StanHeaders:::LdFlags()")
If as_character is TRUE, then these functions return
a character vector of length one. Otherwise, (which is the default) these
functions return NULL invisibly after outputing the compiler
or linker flags to the screen.