<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/r-3-3-1-is-released/"></div></div><div><a data-url="http://www.r-bloggers.com/r-3-3-1-is-released/" data-counturl="http://www.r-bloggers.com/r-3-3-1-is-released/" data-count="horizontal" data-text="R 3.3.1 is released" 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://www.r-statistics.com/2016/06/r-3-3-1-is-released/"> R – R-statistics blog</a></strong>, and kindly contributed to <a rel="nofollow" href="http://www.r-bloggers.com/">R-bloggers)</a> </div>
<p>R 3.3.1 (codename “Bug in Your Hair”) was <a target="_blank" href="https://stat.ethz.ch/pipermail/r-announce/2016/000604.html">released yesterday</a> You can get the latest binaries version <strong><a target="_blank" href="http://cran.rstudio.com/">from here</a>.</strong> (or the .tar.gz <strong>source</strong> code from <a target="_blank" href="http://cran.r-project.org/src/base/R-3/R-3.3.1.tar.gz">here</a>). The full list of bug fixes is provided below <del>new features and</del> (this release does not introduce new features).</p>
<h3>Upgrading to R 3.3.1 on Windows</h3>
<p>If you are using <strong>Windows </strong>you can easily upgrade to the latest version of R using <a target="_blank" href="http://cran.r-project.org/web/packages/installr/">the installr package</a>. Simply run the following code in Rgui:</p>
<div>
<table>
<tr>
<td>
<pre><span>install.<span>packages</span></span><span>(</span><span>&quot;installr&quot;</span><span>)</span> <span># install </span>
setInternet2<span>(</span>TRUE<span>)</span> <span># only for R versions older than 3.3.0</span>
installr<span>::</span><span>updateR</span><span>(</span><span>)</span> <span># updating R.</span></pre>
</td>
</tr>
</table>
</div>
<p><span>Running “updateR()” will detect if there is a new R version available, and if so it will download+install it (etc.). There is also <a target="_blank" href="http://www.r-statistics.com/2015/06/a-step-by-step-screenshots-tutorial-for-upgrading-r-on-windows/">a step by step tutorial (with screenshots) on how to upgrade R on Windows, using the <em>installr</em></a> package. If you only see the option to upgrade to an older version of R, then change your mirror or try again in a few hours (it usually take around 24 hours for all CRAN mirrors to get the latest version of R).</span></p>
<p><em>I try to keep the <a target="_blank" href="https://github.com/talgalili/installr">installr</a> package updated and useful, so if you have any suggestions or remarks on the package – you are invited to <a target="_blank" href="https://github.com/talgalili/installr/issues">open an issue in the github page</a>.</em></p>
<p><span></span></p>
<h3>CHANGES IN R 3.3.1</h3>
<h4>BUG FIXES</h4>
<ul>
<li><code>R CMD INSTALL</code> and hence <code>install.packages()</code> gave an internal error installing a package called <span>description</span> from a tarball on a case-insensitive file system.</li>
<li><code>match(x, t)</code> (and hence <code>x %in% t</code>) failed when <code>x</code> was of length one, and either <code>character</code> and <code>x</code> and <code>t</code> only differed in their <code>Encoding</code> or when <code>x</code> and <code>t</code>where <code>complex</code> with <code>NA</code>s or <code>NaN</code>s. (<a target="_blank" href="https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=16885">PR#16885</a>.)</li>
<li><code>unloadNamespace(ns)</code> also works again when <code>ns</code> is a ‘namespace’, as from <code>getNamespace()</code>.</li>
<li><code>rgamma(1,Inf)</code> or <code>rgamma(1, 0,0)</code> no longer give <code>NaN</code> but the correct limit.</li>
<li><code>length(baseenv())</code> is correct now.</li>
<li><code>pretty(d, ..)</code> for date-time <code>d</code> rarely failed when <code>&quot;halfmonth&quot;</code> time steps were tried (<a target="_blank" href="https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=16923">PR#16923</a>) and on ‘inaccurate’ platforms such as 32-bit windows or a configuration with <code>--disable-long-double</code>; see comment #15 of <a target="_blank" href="https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=16761">PR#16761</a>.</li>
<li>In <code>text.default(x, y, labels)</code>, the rarely(?) used default for <code>labels</code> is now correct also for the case of a 2-column matrix <code>x</code> and missing <code>y</code>.</li>
<li><code>as.factor(c(a = 1L))</code> preserves <code>names()</code> again as in <b>R</b> &lt; 3.1.0.</li>
<li><code>strtrim(&quot;&quot;[0], 0[0])</code> now works.</li>
<li>Use of <code>Ctrl-C</code> to terminate a reverse incremental search started by <code>Ctrl-R</code> in the <code>readline</code>-based Unix terminal interface is now supported for<code>readline</code> >= 6.3 (<code>Ctrl-G</code> always worked). (<a target="_blank" href="https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=16603">PR#16603</a>)</li>
<li><code>diff(&lt;difftime>)</code> now keeps the <code>&quot;units&quot;</code> attribute, as subtraction already did, <a target="_blank" href="https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=16940">PR#16940</a>.</li>
</ul>
<p><img alt="logo" class="wp-image-61379" src="http://i2.wp.com/www.r-statistics.com/wp-content/uploads/2016/03/logo.jpg?resize=100%2C76" data-recalc-dims="1"></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/r-3-3-1-is-released/"></div></div><div><a data-url="http://www.r-bloggers.com/r-3-3-1-is-released/" data-counturl="http://www.r-bloggers.com/r-3-3-1-is-released/" data-count="vertical" data-text="R 3.3.1 is released" 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://www.r-statistics.com/2016/06/r-3-3-1-is-released/"> R – R-statistics blog</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/zph6NSNAA-U"></a></div>