x. If not, please refer to <a href="https://gallery.rcpp.org/articles/rcpp-return-macros/">this Rcpp Gallery example</a> by Nathan Russell which covers the process in much more detail (and which provided the source material for this section).</p>
<p>Say we have a very simple C++ templated function that prints “Hello” and then returns its input.</p>
<div class="sourceCode" id="cb72"><pre class="sourceCode cpp"><code class="sourceCode cpp"><span id="cb72-1"><a href="200_robject.html#cb72-1"></a><span clas