<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/littler-0-3-4-more-updated-examples/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://dirk.eddelbuettel.com/blog/2018/08/24#littler-0.3.4"> Thinking inside the box </a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p><img src="https://i1.wp.com/dirk.eddelbuettel.com/images/letter-r.png?resize=100%2C100" alt="max-heap image" width="100" data-recalc-dims="1" height="100"></p>
<p>The fifth release of <a rel="nofollow" href="http://dirk.eddelbuettel.com/code/littler.html" target="_blank">littler</a> as a <a rel="nofollow" href="https://cran.r-project.org/package=littler" target="_blank">CRAN package</a> is now available, following in the now more than ten-year history as a package started by <a rel="nofollow" href="http://jeffreyhorner.blogspot.com/" target="_blank">Jeff</a> in 2006, and joined by me a few weeks later.</p>
<p><a rel="nofollow" href="http://dirk.eddelbuettel.com/code/littler.html" target="_blank">littler</a> is the first command-line interface for R and predates <code>Rscript</code>. And it is (in my very biased eyes) better as it allows for piping as well <em>shebang</em> scripting via <code>#!</code>, uses command-line arguments more consistently and still <a rel="nofollow" href="http://dirk.eddelbuettel.com/blog/2014/09/02#littler-faster-at-doing-nothing" target="_blank">starts faster</a>. It also always loaded the <code>methods</code> package which <code>Rscript</code> converted to rather recently.</p>
<p><a rel="nofollow" href="http://dirk.eddelbuettel.com/code/littler.html" target="_blank">littler</a> lives on Linux and Unix, has its difficulties on macOS due to yet-another-braindeadedness there (who ever thought case-insensitive filesystems as a default where a good idea?) and simply does not exist on Windows (yet — the build system could be extended — see <a rel="nofollow" href="http://dirk.eddelbuettel.com/code/rinside.html" target="_blank">RInside</a> for an existence proof, and volunteers are welcome!).</p>
<p>A few examples as highlighted at the <a rel="nofollow" href="https://github.com/eddelbuettel/littler" target="_blank">Github repo</a>:</p>
<div>
<img src="https://i2.wp.com/dirk.eddelbuettel.com/blog/2017/12/17/littlerExamples.png?w=456" data-recalc-dims="1">
</div>
<p>This release updates a few of examples scripts. One nice change is the most-excellent <a rel="nofollow" href="https://cran.r-project.org/package=docopt" target="_blank">docopt</a> package for command-line parsing no longer needs <a rel="nofollow" href="https://cran.r-project.org/package=stringr" target="_blank">stringr</a> and hence <a rel="nofollow" href="https://cran.r-project.org/package=stringi" target="_blank">stringi</a> for its operations, making our command-line scripts really lightweight as they now need only the (small) <a rel="nofollow" href="https://cran.r-project.org/package=docopt" target="_blank">docopt</a> package—thanks to <a rel="nofollow" href="https://github.com/edwindj" target="_blank">Edwin de Jonge</a> for all his work on that package. Also, <a rel="nofollow" href="https://www.bertelsen.ca/" target="_blank">Brandon Berterlsen</a> contributed a script (which we later reduced to an option of an existing script) to only install not-yet-installed packages.</p>
<p>The <code>NEWS</code> file entry is below.</p>
<blockquote>
<h3>Changes in littler version 0.3.4 (2018-08-24)</h3>
<ul>
<li>
<p>Changes in examples</p>
<ul>
<li>
<p>The shebang line is now <code>#!/usr/bin/env r</code> to work with either <code>/usr/local/bin/r</code> or <code>/usr/bin/r</code>.</p>
</li>
<li>
<p>New example script to only install packages not yet installed (Brandon Bertelsen in <a rel="nofollow" href="https://github.com/eddelbuettel/littler/pull/59" target="_blank">#59</a>); later added into <code>install2.r</code>.</p>
</li>
<li>
<p>Functions <code>getRStudioDesktop.r</code> and <code>getRStudioServer.r</code> updated their internal URLs.</p>
</li>
<li>
<p>Several minor enhancements were made to example scripts.</p>
</li>
</ul>
</li>
</ul>
</blockquote>
<p><a rel="nofollow" href="http://dirk.eddelbuettel.com/cranberries/" target="_blank">CRANberries</a> provides a comparison to <a rel="nofollow" href="http://dirk.eddelbuettel.com/cranberries/2018/08/24#littler_0.3.4" target="_blank">the previous release</a>. Full details for the <a rel="nofollow" href="http://dirk.eddelbuettel.com/code/littler.html" target="_blank">littler</a> release are provided as usual at the <a rel="nofollow" href="https://github.com/eddelbuettel/littler/blob/master/ChangeLog" target="_blank">ChangeLog</a> page. The code is available via the <a rel="nofollow" href="https://github.com/eddelbuettel/littler" target="_blank">GitHub</a> repo, from tarballs and now of course all from <a rel="nofollow" href="https://cran.rstudio.com/web/packages/littler/index.html" target="_blank">its CRAN page</a> and via <code>install.packages(&quot;littler&quot;)</code>. Binary packages are available directly in <a rel="nofollow" href="http://www.debian.org/" target="_blank">Debian</a> as well as <em>soon</em> via <a rel="nofollow" href="http://cran.r-project.org/bin/linux/ubuntu" target="_blank">Ubuntu binaries at CRAN</a> thanks to the tireless Michael Rutter.</p>
<p>Comments and suggestions are welcome at the <a rel="nofollow" href="https://github.com/eddelbuettel/littler/" target="_blank">GitHub</a> repo.</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>
<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/08/24#littler-0.3.4"> 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/ZpCE3ZQ3giU" height="1"></a></div>