<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/rcppde-0-1-6/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://dirk.eddelbuettel.com/blog/2018/06/09#rcppde_0.1.6"> 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 maintenance release, now at version 0.1.6, of our RcppDE package is now on <a rel="nofollow" href="https://cran.r-project.org/" target="_blank">CRAN</a>. It follows the most recent (unblogged, my bad) 0.1.5 release in January 2016 and the <a rel="nofollow" href="http://dirk.eddelbuettel.com/blog/2015/09/05#rcppde_0.1.4" target="_blank">0.1.4 release</a> in September 2015.</p>
<p>RcppDE is a &quot;port&quot; of <a rel="nofollow" href="http://cran.rstudio.com/package=DEoptim" target="_blank">DEoptim</a>, a popular package for derivative-free optimisation using differential evolution optimization, to C++. By using <a rel="nofollow" href="http://dirk.eddelbuettel.com/code/rcpp.armadillo.html" target="_blank">RcppArmadillo</a>, the code becomes a lot shorter and more legible. Our other main contribution is to leverage some of the excellence we get for free from using <a rel="nofollow" href="http://dirk.eddelbuettel.com/code/rcpp.html" target="_blank">Rcpp</a>, in particular the ability to optimise user-supplied <em>compiled</em> objective functions which can make things a lot faster than repeatedly evaluating interpreted objective functions as <a rel="nofollow" href="http://cran.rstudio.com/package=DEoptim" target="_blank">DEoptim</a> (and, in fairness, just like most other optimisers) does.</p>
<p>That is also what lead to this upload: <a rel="nofollow" href="https://github.com/kylebmetrum" target="_blank">Kyle Baron</a> noticed an <a rel="nofollow" href="https://github.com/eddelbuettel/rcppde/issues/14" target="_blank">issue</a> when <em>nesting</em> a user-supplied <em>compiled</em> function inside a user-supplied compiled objective function — and when using the newest <a rel="nofollow" href="http://dirk.eddelbuettel.com/code/rcpp.html" target="_blank">Rcpp</a>. This has to do with some cleanups we made for how RNG state is, or is not, set and preserved. <a rel="nofollow" href="https://github.com/kevinushey" target="_blank">Kevin Ushey</a> was (once again) a real trooper here and added a simple class to <a rel="nofollow" href="http://dirk.eddelbuettel.com/code/rcpp.html" target="_blank">Rcpp</a> (in what is now the development version 0.12.17.2 available on the <a rel="nofollow" href="https://rcppcore.github.io/drat/" target="_blank">Rcpp drat repo</a>) and used that here to (selectively) restore behaviour similarly to what we had in <a rel="nofollow" href="http://dirk.eddelbuettel.com/code/rcpp.html" target="_blank">Rcpp</a> (but which created another issue for another project). So all that is good now in all use cases. We also have some other changes contributed by <a rel="nofollow" href="https://github.com/Ecthilisyk" target="_blank">Yi Kang</a> some time ago for both JADE style randomization and some internal tweaks. Some packaging details were updated, and that sums up release 0.1.6.</p>
<p>Courtesy of <a rel="nofollow" href="http://dirk.eddelbuettel.com/cranberries/" target="_blank">CRANberries</a>, there is also a diffstat report for the <a rel="nofollow" href="http://dirk.eddelbuettel.com/cranberries/2018/06/09#RcppDE_0.1.6" target="_blank">most recent release</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/06/09#rcppde_0.1.6"> 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/AHDT_4kmEus" height="1"></a></div>