<p><div><div><div><div data-show-faces="false" data-height="21" data-width="100" data-layout="button_count" data-send="true" data-href="https://www.r-bloggers.com/rcpp-0-12-18-another-batch-of-updates/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://dirk.eddelbuettel.com/blog/2018/07/23#rcpp_0.12.18"> Thinking inside the box </a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p>Another bi-monthly update in the 0.12.* series of <a rel="nofollow" href="http://dirk.eddelbuettel.com/code/rcpp.html" target="_blank">Rcpp</a> landed on <a rel="nofollow" href="http://cran.r-project.org/" target="_blank">CRAN</a> early this morning following less than two weekend in the <code>incoming/</code> directory of <a rel="nofollow" href="http://cran.r-project.org/" target="_blank">CRAN</a>. As always, thanks to <a rel="nofollow" href="http://cran.r-project.org/" target="_blank">CRAN</a> for all the work they do so well.</p>
<p>So once more, this release follows the <a rel="nofollow" href="http://dirk.eddelbuettel.com/blog/2015/07/25#rcpp_0.12.0" target="_blank">0.12.0 release</a> from July 2016, the <a rel="nofollow" href="http://dirk.eddelbuettel.com/blog/2015/09/10#rcpp_0.12.1" target="_blank">0.12.1 release</a> in September 2016, the <a rel="nofollow" href="http://dirk.eddelbuettel.com/blog/2015/11/15#rcpp_0.12.2" target="_blank">0.12.2 release</a> in November 2016, the <a rel="nofollow" href="http://dirk.eddelbuettel.com/blog/2016/01/10#rcpp_0.12.3" target="_blank">0.12.3 release</a> in January 2017, the <a rel="nofollow" href="http://dirk.eddelbuettel.com/blog/2016/03/26#rcpp_0.12.4" target="_blank">0.12.4 release</a> in March 2016, the <a rel="nofollow" href="http://dirk.eddelbuettel.com/blog/2016/05/14#rcpp_0.12.5" target="_blank">0.12.5 release</a> in May 2016, the <a rel="nofollow" href="http://dirk.eddelbuettel.com/blog/2016/07/19#rcpp_0.12.6" target="_blank">0.12.6 release</a> in July 2016, the <a rel="nofollow" href="http://dirk.eddelbuettel.com/blog/2016/09/04#rcpp_0.12.7" target="_blank">0.12.7 release</a> in September 2016, the <a rel="nofollow" href="http://dirk.eddelbuettel.com/blog/2016/11/18#rcpp_0.12.8" target="_blank">0.12.8 release</a> in November 2016, the <a rel="nofollow" href="http://dirk.eddelbuettel.com/blog/2017/01/15#rcpp_0.12.9" target="_blank">0.12.9 release</a> in January 2017, the <a rel="nofollow" href="http://dirk.eddelbuettel.com/blog/2017/03/19#rcpp_0.12.10" target="_blank">0.12.10.release</a> in March 2017, the <a rel="nofollow" href="http://dirk.eddelbuettel.com/blog/2017/05/23#rcpp_0.12.11" target="_blank">0.12.11.release</a> in May 2017, the <a rel="nofollow" href="http://dirk.eddelbuettel.com/blog/2017/07/15#rcpp_0.12.12" target="_blank">0.12.12 release</a> in July 2017, the <a rel="nofollow" href="http://dirk.eddelbuettel.com/blog/2017/09/28#rcpp_0.12.13" target="_blank">0.12.13.release</a> in late September 2017, the <a rel="nofollow" href="http://dirk.eddelbuettel.com/blog/2017/11/24#rcpp_0.12.14" target="_blank">0.12.14.release</a> in November 2017, the <a rel="nofollow" href="http://dirk.eddelbuettel.com/blog/2018/01/20#rcpp_0.12.15" target="_blank">0.12.15.release</a> in January 2018, the <a rel="nofollow" href="http://dirk.eddelbuettel.com/blog/2018/03/13#rcpp_0.12.16" target="_blank">0.12.16.release</a> in March 2018, and the <a rel="nofollow" href="http://dirk.eddelbuettel.com/blog/2018/05/20#rcpp_0.12.17" target="_blank">0.12.17 release</a> in May 2018 making it the twenty-second release at the steady and predictable bi-montly release frequency (which started with the 0.11.* series).</p>
<p><a rel="nofollow" href="http://dirk.eddelbuettel.com/code/rcpp.html" target="_blank">Rcpp</a> has become <em>the</em> most popular way of enhancing <a rel="nofollow" href="http://www.r-project.org/" target="_blank">GNU R</a> with C or C++ code. As of today, 1403 packages on <a rel="nofollow" href="http://cran.r-project.org/" target="_blank">CRAN</a> depend on <a rel="nofollow" href="http://dirk.eddelbuettel.com/code/rcpp.html" target="_blank">Rcpp</a> for making analytical code go faster and further, along with another 138 in the current <a rel="nofollow" href="https://www.bioconductor.org/" target="_blank">BioConductor</a> release 3.7.</p>
<p>A pretty decent number of changes, contributed by a number of Rcpp core team members as well as Rcpp user, went into this. Full details are below.</p>
<blockquote>
<h4>Changes in Rcpp version 0.12.18 (2018-07-21)</h4>
<ul>
<li>
<p>Changes in Rcpp API:</p>
<ul>
<li>
<p>The <code>StringProxy::operator==</code> is now <code>const</code> correct (Romain in <a rel="nofollow" href="https://github.com/RcppCore/Rcpp/pull/855" target="_blank">#855</a> fixing <a rel="nofollow" href="https://github.com/RcppCore/Rcpp/issues/854" target="_blank">#854</a>).</p>
</li>
<li>
<p>The <code>Environment::new_child()</code> is now <code>const</code> (Romain in <a rel="nofollow" href="https://github.com/RcppCore/Rcpp/pull/858" target="_blank">#858</a> fixing <a rel="nofollow" href="https://github.com/RcppCore/Rcpp/issues/854" target="_blank">#854</a>).</p>
</li>
<li>
<p>Next <code>eval</code> codes now properly unwind (Lionel in the large and careful <a rel="nofollow" href="https://github.com/RcppCore/Rcpp/pull/859" target="_blank">#859</a> fixing <a rel="nofollow" href="https://github.com/RcppCore/Rcpp/issues/807" target="_blank">#807</a>).</p>
</li>
<li>
<p>In debugging mode, more type information is shown on <code>abort()</code> (Jack Wasey in <a rel="nofollow" href="https://github.com/RcppCore/Rcpp/pull/860" target="_blank">#860</a> and <a rel="nofollow" href="https://github.com/RcppCore/Rcpp/pull/882" target="_blank">#882</a> fixing <a rel="nofollow" href="https://github.com/RcppCore/Rcpp/issues/857" target="_blank">#857</a>).</p>
</li>
<li>
<p>A new class was added which allow suspension of the RNG synchronisation to address an issue seen in <a rel="nofollow" href="https://cran.r-project.org/package=RcppDE" target="_blank"><span>RcppDE</span></a> (Kevin in <a rel="nofollow" href="https://github.com/RcppCore/Rcpp/pull/862" target="_blank">#862</a>).</p>
</li>
<li>
<p>Evaluation calls now happen in the <code>base</code> environment (which may fix an issue seen between <a rel="nofollow" href="https://cran.r-project.org/package=conflicted" target="_blank"><span>conflicted</span></a> and some BioConductor packages) (Kevin in <a rel="nofollow" href="https://github.com/RcppCore/Rcpp/pull/863" target="_blank">#863</a> fixing <a rel="nofollow" href="https://github.com/RcppCore/Rcpp/issues/861" target="_blank">#861</a>).</p>
</li>
<li>
<p>Call stack display on error can now be controlled more finely (Romain in <a rel="nofollow" href="https://github.com/RcppCore/Rcpp/pull/868" target="_blank">#868</a>).</p>
</li>
<li>
<p>The new <code>Rcpp_fast_eval</code> is used instead of <code>Rcpp_eval</code> though this still requires setting <code>RCPP_USE_UNWIND_PROTECT</code> before including <code>Rcpp.h</code> (Qiang Kou in <a rel="nofollow" href="https://github.com/RcppCore/Rcpp/pull/867" target="_blank">#867</a> closing <a rel="nofollow" href="https://github.com/RcppCore/Rcpp/issues/866" target="_blank">#866</a>).</p>
</li>
<li>
<p>The <code>Rcpp::unwindProtect()</code> function extracts the unwinding from the <code>Rcpp_fast_eval()</code> function and makes it more generally available. (Lionel in <a rel="nofollow" href="https://github.com/RcppCore/Rcpp/pull/873" target="_blank">#873</a> and <a rel="nofollow" href="https://github.com/RcppCore/Rcpp/pull/877" target="_blank">#877</a>).</p>
</li>
<li>
<p>The <code>tm_gmtoff</code> part is skipped on AIX too (<a rel="nofollow" href="https://github.com/RcppCore/Rcpp/pull/876" target="_blank">#876</a>).</p>
</li>
</ul>
</li>
<li>
<p>Changes in Rcpp Attributes:</p>
<ul>
<li>
<p>The <code>sourceCpp()</code> function now evaluates R code in the correct local environment in which a function was compiled (Filip Schouwenaars in <a rel="nofollow" href="https://github.com/RcppCore/Rcpp/pull/852" target="_blank">#852</a> and <a rel="nofollow" href="https://github.com/RcppCore/Rcpp/pull/869" target="_blank">#869</a> fixing <a rel="nofollow" href="https://github.com/RcppCore/Rcpp/issues/851" target="_blank">#851</a>).</p>
</li>
<li>
<p>Filenames are now sorted in a case-insenstive way so that the <code>RcppExports</code> files are more stable across locales (Jack Wasey in <a rel="nofollow" href="https://github.com/RcppCore/Rcpp/pull/878" target="_blank">#878</a>).</p>
</li>
</ul>
</li>
<li>
<p>Changes in Rcpp Sugar:</p>
<ul>
<li>The sugar functions <code>min</code> and <code>max</code> now recognise empty vectors (Dirk in <a rel="nofollow" href="https://github.com/RcppCore/Rcpp/pull/884" target="_blank">#884</a> fixing <a rel="nofollow" href="https://github.com/RcppCore/Rcpp/issues/883" target="_blank">#883</a>).</li>
</ul>
</li>
</ul>
</blockquote>
<p>Thanks to <a rel="nofollow" href="http://dirk.eddelbuettel.com/cranberries/" target="_blank">CRANberries</a>, you can also look at a <a rel="nofollow" href="http://dirk.eddelbuettel.com/cranberries/2018/07/23#Rcpp_0.12.18" target="_blank">diff to the previous release</a>. As always, details are on the <a rel="nofollow" href="http://dirk.eddelbuettel.com/code/rcpp.changelog.html" target="_blank">Rcpp Changelog page</a> and the <a rel="nofollow" href="http://dirk.eddelbuettel.com/code/rcpp.html" target="_blank">Rcpp page</a> which also leads to the downloads page, the <a rel="nofollow" href="http://dirk.eddelbuettel.com/code/rcpp/html/index.html" target="_blank">browseable doxygen docs</a> and zip files of doxygen output for the standard formats. Questions, comments etc should go to the <a rel="nofollow" href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel" target="_blank">rcpp-devel mailing list</a> off the <a rel="nofollow" href="http://r-forge.r-project.org/projects/rcpp/" target="_blank">R-Forge page</a>.</p>
<p>
This post by <a rel="nofollow" href="http://dirk.eddelbuettel.com/" target="_blank">Dirk Eddelbuettel</a> originated on his <a rel="nofollow" href="http://dirk.eddelbuettel.com/blog/" target="_blank">Thinking inside the box</a> blog. Please report excessive re-aggregation in third-party for-profit settings.</p>
<p>
	<p>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="http://dirk.eddelbuettel.com/blog/2018/07/23#rcpp_0.12.18"> Thinking inside the box </a></strong>.</div>
<hr>
<a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="https://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a rel="nofollow" href="https://www.r-project.org/" title="The R Project for Statistical Computing">R</a> news and <a rel="nofollow" href="https://www.r-bloggers.com/search/tutorial" title="R tutorials">tutorials</a> on topics such as: <a rel="nofollow" href="https://www.r-bloggers.com/search/data%20science" title="Data science">Data science</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Big%20Data" title="Big Data">Big Data, <a rel="nofollow" href="https://www.r-users.com/" title="R jobs">R jobs</a>, visualization (<a rel="nofollow" href="https://www.r-bloggers.com/search/ggplot2" title="ggplot and ggplot2 tutorials">ggplot2</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/boxplot" title="Boxplots using lattice and ggplot2 tutorials">Boxplots</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/map" title="Maps and gis">maps</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/animation" title="Animation in R">animation</a>), programming (<a rel="nofollow" href="https://www.r-bloggers.com/search/RStudio" title="RStudio IDE for R">RStudio</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/sweave" title="Sweave and literate programming">Sweave</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/LaTeX" title="LaTeX in R">LaTeX</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/SQL" title="SQL and databases">SQL</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/eclipse" title="Eclipse IDE for R">Eclipse</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/git" title="git and github, Version Control System">git</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/hadoop" title="Large data in R using Hadoop">hadoop</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Web+Scraping" title="Web Scraping of google, facebook, yahoo, twitter and more using R">Web Scraping</a>) statistics (<a rel="nofollow" href="https://www.r-bloggers.com/search/regression" title="Regressions and ANOVA analysis tutorials">regression</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/PCA" title="principal component analysis tutorial">PCA</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/time+series" title="Time series">time series</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/trading" title="finance trading">trading</a>) and more...
<img width="1" alt="" src="http://feeds.feedburner.com/~r/RBloggers/~4/k7zXQWbJ4pw" height="1"></a></div>