<p><div><div><div><div data-width="100" data-show-faces="false" data-send="true" data-layout="button_count" data-height="21" data-href="http://www.r-bloggers.com/rcpp-0-12-6-rolling-on/"></div></div><div><a data-url="http://www.r-bloggers.com/rcpp-0-12-6-rolling-on/" data-counturl="http://www.r-bloggers.com/rcpp-0-12-6-rolling-on/" data-count="horizontal" data-text="Rcpp 0.12.6: Rolling on" class="twitter-share-button" data-via="rbloggers" href="https://twitter.com/share"></a></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://dirk.eddelbuettel.com/blog/2016/07/19#rcpp_0.12.6"> Thinking inside the box </a></strong>, and kindly contributed to <a rel="nofollow" href="http://www.r-bloggers.com/">R-bloggers)</a> </div>
<p>The sixth update in the 0.12.* series of <a target="_blank" href="http://dirk.eddelbuettel.com/code/rcpp.html">Rcpp</a> has arrived on the <a target="_blank" href="http://cran.r-project.org/">CRAN</a> network for <a target="_blank" href="http://www.r-project.org/">GNU R</a> a few hours ago, and was just pushed to <a target="_blank" href="http://www.debian.org/">Debian</a>. This 0.12.6 release follows the <a target="_blank" href="http://dirk.eddelbuettel.com/blog/2015/07/25#rcpp_0.12.0">0.12.0 release</a> from late July, the <a target="_blank" href="http://dirk.eddelbuettel.com/blog/2015/09/10#rcpp_0.12.1">0.12.1 release</a> in September, the <a target="_blank" href="http://dirk.eddelbuettel.com/blog/2015/11/15#rcpp_0.12.2">0.12.2 release</a> in November, the <a target="_blank" href="http://dirk.eddelbuettel.com/blog/2016/01/10#rcpp_0.12.3">0.12.3 release</a> in January, the <a target="_blank" href="http://dirk.eddelbuettel.com/blog/2016/03/26#rcpp_0.12.4">0.12.4 release</a> in March, and the <a target="_blank" href="http://dirk.eddelbuettel.com/blog/2016/05/14#rcpp_0.12.5">0.12.5 release</a> in May — making it the tenth release at the steady bi-montly release frequency. Just like the previous release, this one is once again more of a refining maintenance release which addresses small bugs, nuisances or documentation issues without adding any major new features. That said, some nice features (such as caching support for <code>sourceCpp()</code> and friends) were added.</p>
<p><a target="_blank" href="http://dirk.eddelbuettel.com/code/rcpp.html">Rcpp</a> has become <em>the</em> most popular way of enhancing <a target="_blank" href="http://www.r-project.org/">GNU R</a> with C or C++ code. As of today, 703 packages on <a target="_blank" href="http://cran.r-project.org/">CRAN</a> depend on <a target="_blank" href="http://dirk.eddelbuettel.com/code/rcpp.html">Rcpp</a> for making analytical code go faster and further. That is up by about fourty packages from the last release in May!</p>
<p>Similar to the previous releases, we have contributions from first-time committers. <a target="_blank" href="http://statexpert.org/">Artem Klevtsov</a> made <code>na_omit</code> run faster on vectors without <code>NA</code> values. Otherwise, we had many contributions from &quot;regulars&quot; like <a target="_blank" href="https://github.com/krlmlr">Kirill Mueller</a>, <a target="_blank" href="http://thecoatlessprofessor.com/">James &quot;coatless&quot; Balamuta</a> and <a target="_blank" href="https://github.com/dcdillon">Dan Dillon</a> as well as from fellow Rcpp Core contributors. Some noteworthy highlights are encoding and string fixes, generally more robust builds, a new iterator-based approach for vectorized programming, the aforementioned caching for <code>sourceCpp()</code>, and several documentation enhancements. More details are below.</p>
<blockquote>
<h3>
Changes in Rcpp version 0.12.6 (2016-07-18)<br>
</h3>
<ul>
<li>
<p>
Changes in Rcpp API:
</p>
<ul>
<li>
<p>
The <code>long long</code> data type is used only if it is available, to avoid compiler warnings (Kirill Müller in <a target="_blank" href="https://github.com/RcppCore/Rcpp/pull/488">#488</a>).
</p>
</li>
<li>
<p>
The compiler is made aware that <code>stop()</code> never returns, to improve code path analysis (Kirill Müller in <a target="_blank" href="https://github.com/RcppCore/Rcpp/pull/487">#487</a> addressing issue <a target="_blank" href="https://github.com/RcppCore/Rcpp/issues/486">#486</a>).
</p>
</li>
<li>
<p>
String replacement was corrected (Qiang in <a target="_blank" href="https://github.com/RcppCore/Rcpp/pull/479">#479</a> following mailing list bug report by Masaki Tsuda)
</p>
</li>
<li>
<p>
Allow for UTF-8 encoding in error messages via <code>RCPP_USING_UTF8_ERROR_STRING</code> macro (Qin Wenfeng in <a target="_blank" href="https://github.com/RcppCore/Rcpp/pull/493">#493</a>)
</p>
</li>
<li>
<p>
The R function <code>Rf_warningcall</code> is now provided as well (as usual without leading <code>Rf_</code>) (<a target="_blank" href="https://github.com/RcppCore/Rcpp/pull/497">#497</a> fixing <a target="_blank" href="https://github.com/RcppCore/Rcpp/issues/495">#495</a>)
</p>
</li>
</ul>
</li>
<li>
<p>
Changes in Rcpp Sugar:
</p>
<ul>
<li>
<p>
Const-ness of <code>min</code> and <code>max</code> functions has been corrected. (Dan Dillon in PR <a target="_blank" href="https://github.com/RcppCore/Rcpp/pull/478">#478</a> fixing issue <a target="_blank" href="https://github.com/RcppCore/Rcpp/issues/477">#477</a>).
</p>
</li>
<li>
<p>
Ambiguities for matrix/vector and scalar operations have been fixed (Dan Dillon in PR <a target="_blank" href="https://github.com/RcppCore/Rcpp/pull/476">#476</a> fixing issue <a target="_blank" href="https://github.com/RcppCore/Rcpp/issues/475">#475</a>).
</p>
</li>
<li>
<p>
New <code>algorithm</code> header using iterator-based approach for vectorized functions (Dan in PR <a target="_blank" href="https://github.com/RcppCore/Rcpp/pull/481">#481</a> revisiting PR <a target="_blank" href="https://github.com/RcppCore/Rcpp/pull/428">#428</a> and addressing issue <a target="_blank" href="https://github.com/RcppCore/Rcpp/issues/426">#426</a>, with futher work by Kirill in PR <a target="_blank" href="https://github.com/RcppCore/Rcpp/pull/488">#488</a> and Nathan in <a target="_blank" href="https://github.com/RcppCore/Rcpp/pull/503">#503</a> fixing issue <a target="_blank" href="https://github.com/RcppCore/Rcpp/issues/502">#502</a>).
</p>
</li>
<li>
<p>
The <code>na_omit()</code> function is now faster for vectors without <code>NA</code> values (Artem Klevtsov in PR <a target="_blank" href="https://github.com/RcppCore/Rcpp/pull/492">#492</a>)
</p>
</li>
</ul>
</li>
<li>
<p>
Changes in Rcpp Attributes:
</p>
<ul>
<li>
<p>
Add <code>cacheDir</code> argument to <code>sourceCpp()</code> to enable caching of shared libraries across R sessions (JJ in <a target="_blank" href="https://github.com/RcppCore/Rcpp/pull/504">#504</a>).
</p>
</li>
<li>
<p>
Code generation now deals correctly which packages containing a dot in their name (Qiang in <a target="_blank" href="https://github.com/RcppCore/Rcpp/pull/501">#501</a> fixing <a target="_blank" href="https://github.com/RcppCore/Rcpp/issues/500">#500</a>).
</p>
</li>
</ul>
</li>
<li>
<p>
Changes in Rcpp Documentation:
</p>
<ul>
<li>
<p>
A section on default parameters was added to the Rcpp FAQ vignette (James Balamuta in <a target="_blank" href="https://github.com/RcppCore/Rcpp/pull/505">#505</a> fixing <a target="_blank" href="https://github.com/RcppCore/Rcpp/issues/418">#418</a>).
</p>
</li>
<li>
<p>
The Rcpp-attributes vignette is now mentioned more prominently in question one of the Rcpp FAQ vignette.
</p>
</li>
<li>
<p>
The Rcpp Quick Reference vignette received a facelift with new sections on Rcpp attributes and plugins begin added. (James Balamuta in <a target="_blank" href="https://github.com/RcppCore/Rcpp/pull/509">#509</a> fixing <a target="_blank" href="https://github.com/RcppCore/Rcpp/issues/484">#484</a>).
</p>
</li>
<li>
<p>
The bib file was updated with respect to the recent JSS publication for RProtoBuf.
</p>
</li>
</ul>
</li>
</ul>
</blockquote>
<p>Thanks to <a target="_blank" href="http://dirk.eddelbuettel.com/cranberries/">CRANberries</a>, you can also look at a <a target="_blank" href="http://dirk.eddelbuettel.com/cranberries/2016/07/19#Rcpp_0.12.6">diff to the previous release</a>. As always, even fuller details are on the <a target="_blank" href="http://dirk.eddelbuettel.com/code/rcpp.changelog.html">Rcpp Changelog page</a> and the <a target="_blank" href="http://dirk.eddelbuettel.com/code/rcpp.html">Rcpp page</a> which also leads to the downloads page, the <a target="_blank" href="http://dirk.eddelbuettel.com/code/rcpp/html/index.html">browseable doxygen docs</a> and zip files of doxygen output for the standard formats. A <a target="_blank" href="http://dirk.eddelbuettel.com/code/rcpp/">local directory</a> has source and documentation too. Questions, comments etc should go to the <a target="_blank" href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel">rcpp-devel mailing list</a> off the <a target="_blank" href="http://r-forge.r-project.org/projects/rcpp/">R-Forge page</a>.</p>
<p>
This post by <a target="_blank" href="http://dirk.eddelbuettel.com/">Dirk Eddelbuettel</a> originated on his <a target="_blank" href="http://dirk.eddelbuettel.com/blog/">Thinking inside the box</a> blog. Please report excessive re-aggregation in third-party for-profit settings.</p>
<p>
<p><div><div><div><div data-width="55" data-show-faces="false" data-send="true" data-layout="box_count" data-height="62" data-href="http://www.r-bloggers.com/rcpp-0-12-6-rolling-on/"></div></div><div><a data-url="http://www.r-bloggers.com/rcpp-0-12-6-rolling-on/" data-counturl="http://www.r-bloggers.com/rcpp-0-12-6-rolling-on/" data-count="vertical" data-text="Rcpp 0.12.6: Rolling on" class="twitter-share-button" data-via="rbloggers" href="https://twitter.com/share"></a></div><div></div></div><div></div></div>
<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/2016/07/19#rcpp_0.12.6"> Thinking inside the box </a></strong>.</div>
<hr>
<a rel="nofollow" href="http://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="http://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a title="The R Project for Statistical Computing" rel="nofollow" href="http://www.r-project.org/">R</a> news and <a title="R tutorials" rel="nofollow" href="http://www.r-bloggers.com/?s=tutorial">tutorials</a> on topics such as: <a title="Data science" rel="nofollow" href="http://www.r-bloggers.com/?s=data%20science">Data science</a>, <a title="Big Data" rel="nofollow" href="http://www.r-bloggers.com/?s=Big%20Data">Big Data, <a title="R jobs" rel="nofollow" href="http://www.r-users.com/">R jobs</a>, visualization (<a title="ggplot and ggplot2 tutorials" rel="nofollow" href="http://www.r-bloggers.com/?s=ggplot2">ggplot2</a>, <a title="Boxplots using lattice and ggplot2 tutorials" rel="nofollow" href="http://www.r-bloggers.com/?s=boxplot">Boxplots</a>, <a title="Maps and gis" rel="nofollow" href="http://www.r-bloggers.com/?s=map">maps</a>, <a title="Animation in R" rel="nofollow" href="http://www.r-bloggers.com/?s=animation">animation</a>), programming (<a title="RStudio IDE for R" rel="nofollow" href="http://www.r-bloggers.com/?s=RStudio">RStudio</a>, <a title="Sweave and literate programming" rel="nofollow" href="http://www.r-bloggers.com/?s=sweave">Sweave</a>, <a title="LaTeX in R" rel="nofollow" href="http://www.r-bloggers.com/?s=LaTeX">LaTeX</a>, <a title="SQL and databases" rel="nofollow" href="http://www.r-bloggers.com/?s=SQL">SQL</a>, <a title="Eclipse IDE for R" rel="nofollow" href="http://www.r-bloggers.com/?s=eclipse">Eclipse</a>, <a title="git and github, Version Control System" rel="nofollow" href="http://www.r-bloggers.com/?s=git">git</a>, <a title="Large data in R using Hadoop" rel="nofollow" href="http://www.r-bloggers.com/?s=hadoop">hadoop</a>, <a title="Web Scraping of google, facebook, yahoo, twitter and more using R" rel="nofollow" href="http://www.r-bloggers.com/?s=Web+Scraping">Web Scraping</a>) statistics (<a title="Regressions and ANOVA analysis tutorials" rel="nofollow" href="http://www.r-bloggers.com/?s=regression">regression</a>, <a title="principal component analysis tutorial" rel="nofollow" href="http://www.r-bloggers.com/?s=PCA">PCA</a>, <a title="Time series" rel="nofollow" href="http://www.r-bloggers.com/?s=time+series">time series</a>, <a title="finance trading" rel="nofollow" href="http://www.r-bloggers.com/?s=trading">trading</a>) and more...
<img height="1" alt="" width="1" src="http://feeds.feedburner.com/~r/RBloggers/~4/DOeq1R7rWDc"></a></div>