<div dir="ltr">Dirk, as expected, you are correct.  Many thanks... <div><br></div><div>Dan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Aug 30, 2015 at 6:20 PM, Dirk Eddelbuettel <span dir="ltr"><<a href="mailto:edd@debian.org" target="_blank">edd@debian.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
On 30 August 2015 at 16:39, Daniel McCarthy wrote:<br>
| Thank you Dirk!  <br>
|<br>
| The issue stemmed from my using RcppArmadillo's sample function.  Reference<br>
| link here: <br>
| <a href="http://gallery.rcpp.org/articles/using-the-Rcpp-based-sample-implementation/" rel="noreferrer" target="_blank">http://gallery.rcpp.org/articles/using-the-Rcpp-based-sample-implementation/</a><br>
|<br>
| At the top of my .cpp file I had used the following code to be able to call<br>
| upon that function: <br>
|<br>
| #include <armadillo><br>
| #include <RcppArmadilloExtensions/sample.h><br>
| //[[Rcpp::depends(RcppArmadillo)]]<br>
|<br>
|<br>
| After I created another function that avoided my needing to call upon the<br>
| function that required this, then going back to putting the usual stuff at the<br>
| top of my .cpp file,<br>
|<br>
| #include <RcppArmadillo.h><br>
| //[[Rcpp::depends(RcppArmadillo)]]<br>
|<br>
|<br>
| the note went away.  <br>
<br>
</span>Look more closely.  I suspect the issue was likely caused you including<br>
<br>
     #include <armadillo><br>
<br>
without also including our settings. So you get vanilla Armadillo -- without<br>
our override.  If you did<br>
<br>
     #include <RcppArmadillo.h><br>
<span class="">     #include <RcppArmadilloExtensions/sample.h><br>
     // [[Rcpp::depends(RcppArmadillo)]]<br>
<br>
</span>I am fairly certain you would RcppArmadillo AND the desired sample() function<br>
BUT NOT the dreaded cout.<br>
<div class="HOEnZb"><div class="h5"><br>
Dirk<br>
<br>
--<br>
<a href="http://dirk.eddelbuettel.com" rel="noreferrer" target="_blank">http://dirk.eddelbuettel.com</a> | @eddelbuettel | <a href="mailto:edd@debian.org">edd@debian.org</a><br>
</div></div></blockquote></div><br></div>