#'@title set up the environment to allow C++11 compilation of individual files
#'@description fairly self-explanatory. Sometimes I want to grab breaking C++ out of a wider, OO
#'project and just test it function by function, a plan that quickly falls apart if it's C++11
#'code because I can never remember the name of the environmental variable to set to get it
#'compile that way. This does that.
#'
#'@export
set_cpp11 <- function(){
Sys.setenv("PKG_CXXFLAGS"="-std=c++11")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.