R/dev.R

#'@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")
}
Ironholds/olivr documentation built on May 7, 2019, 6:40 a.m.