title: R: C++ Optimization flag when using the inline package
body: <p>In R when using the cxxfunction from the <a href="http://cran.r-project.org/web/packages/inline/index.html" rel="noreferrer">inline package</a>, how does one change the optimization flag for the cpp compiler?</p>
  
  <p>By default, on my machine, it compiles with <code>-g -O2</code>. But I would like to use the <code>-O3</code> optimization to gain speed. I use the <code>Rcpp</code> plugin if that makes any difference.</p>
  
  <p>I have tried creating my own plugin, and I have tried to set the different arguments of the cxxfunction but nothing worked.</p>
  
  <p>I guess one option would be to compile it using <code>R CMD SHLIB</code> instead of using <code>cxxfunction</code>. But Rcpp recommends the use of <code>inline</code> because most of their test cases are using it. </p>
  
  <p>thanks for your help, let me know if you need any clarification</p>