<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/prrd-0-0-1-parallel-running-of-reverse-depends/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://dirk.eddelbuettel.com/blog/2018/01/07#prrd_0.0.1"> Thinking inside the box </a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p>A new package is now on the <a rel="nofollow" href="https://ghrr.github.io/drat/" target="_blank">ghrr drat</a>. It was uploaded four days ago to <a rel="nofollow" href="https://cran.r-project.org/" target="_blank">CRAN</a> but still lingers in the <code>inspect/</code> state, along with a growing number of other packages. But as some new packages have come through, I am sure it will get processed <em>eventually</em> but in the meantime I figured I may as well make it available this way.</p>
<p>The idea of <a rel="nofollow" href="http://dirk.eddelbuettel.com/code/prrd.html" target="_blank">prrd</a> is simple, and described in some more detail on <a rel="nofollow" href="http://dirk.eddelbuettel.com/code/prrd.html" target="_blank">its webpage</a> and its <a rel="nofollow" href="https://github.com/eddelbuettel/prrd" target="_blank">GitHub repo</a>. Reverse dependency checks are an important part of package development (provided you care about not breaking other packages as <a rel="nofollow" href="https://cran.r-project.org/" target="_blank">CRAN</a> asks you too), and is easily done in a (serial) loop. But these checks are also generally <em>embarassingly parallel</em> as there is no or little interdependency between them (besides maybe shared build depedencies).</p>
<p>So this package uses the <a rel="nofollow" href="https://cran.r-project.org/package=liteq" target="_blank">liteq</a> package by <a rel="nofollow" href="https://github.com/gaborcsardi" target="_blank">Gabor Csardi</a> to set up all tests to run as <em>tasks</em> in a <em>queue</em>. This permits multiple independent <em>queue runners</em> to work at a task at a time. Results are written back and summarized.</p>
<p>This already works pretty well as evidenced by the following screenshot (running six parallel workers, arranged in split <a rel="nofollow" href="http://byobu.co/" target="_blank">byobu</a> session).</p>
<div>
<img src="https://i1.wp.com/github.com/eddelbuettel/prrd/raw/master/local/screenshot_prrd_rcpparmadillo.png?w=456&ssl=1" data-recalc-dims="1">
</div>
<p>See the aforementioned <a rel="nofollow" href="http://dirk.eddelbuettel.com/code/prrd.html" target="_blank">webpage</a> and its <a rel="nofollow" href="https://github.com/eddelbuettel/prrd" target="_blank">repo</a> for more details, and by all means give it a whirl.</p>
<p>For more questions or comments use the <a rel="nofollow" href="https://github.com/eddelbuettel/prrd/issues" target="_blank">issue tracker</a> off the <a rel="nofollow" href="https://github.com/eddelbuettel/prrd" target="_blank">GitHub repo</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/01/07#prrd_0.0.1"> 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/yD8YR5cdFc0" height="1"></a></div>