<p><div><div><div><div data-width="100" data-show-faces="false" data-send="true" data-layout="button_count" data-height="21" data-href="https://www.r-bloggers.com/anytime-0-1-2-another-bugfix/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://dirk.eddelbuettel.com/blog/2016/12/13#anytime_0.1.2"> 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 update, now at release 0.1.2, of <a target="_blank" rel="nofollow" href="http://dirk.eddelbuettel.com/code/anytime.html">anytime</a> arrived at <a target="_blank" rel="nofollow" href="https://cran.r-project.org/">CRAN</a> earlier today.</p>
<p><a target="_blank" rel="nofollow" href="http://dirk.eddelbuettel.com/code/anytime.html">anytime</a> is a very focused package aiming to do just one thing <em>really</em> well: to convert <em>anything</em> in integer, numeric, character, factor, ordered, … format to either POSIXct or Date objects — and to do so <em>without requiring a format string</em>.</p>
<p>See the <a target="_blank" rel="nofollow" href="http://dirk.eddelbuettel.com/code/anytime.html">anytime</a> page, or the <a target="_blank" rel="nofollow" href="https://github.com/eddelbuettel/anytime">GitHub README.md</a> for a few examples, or just consider the following illustration:</p>
<div>
<pre><code>R><span> </span><span>library</span>(anytime)
R><span> </span><span>anytime</span>(<span>&quot;20161107 202122&quot;</span>)   ## all digits
[<span>1</span>] <span>&quot;2016-11-07 20:21:22 CST&quot;</span>
R><span> </span><span>utctime</span>(<span>&quot;2016Nov07 202122&quot;</span>)  ## UTC parse example
[<span>1</span>] <span>&quot;2016-11-07 14:21:22 CST&quot;</span>
R><span> </span></code></pre>
</div>
<p>Release 0.1.2 addresses a somewhat bizarre Windows-only bug reported <a target="_blank" rel="nofollow" href="https://github.com/eddelbuettel/anytime/issues/33">at GitHub in #33</a> and <a target="_blank" rel="nofollow" href="http://stackoverflow.com/questions/41069167/is-this-a-bug-in-anytimes-anydate-function">at StackOverflow</a>. Formats of the <code>%Y-%b-%d</code> form, ie <code>2016-Dec-12</code> for today would fail on Windows as the contiguous string was apparently getting split by a routine looking for splits on spaces. Really strange.</p>
<p>Anyway, I switched to using more helper functions from the <a target="_blank" rel="nofollow" href="http://www.boost.org/doc/libs/1_62_0/doc/html/string_algo.html">Boost String Algorithms</a> library, and things are behaving now. An extra shoutout once more to <a target="_blank" rel="nofollow" href="http://gaborcsardi.org/">Gábor Csárdi</a> and the <a target="_blank" rel="nofollow" href="https://www.r-consortium.org/">R Consortium</a> for the most awesome <a target="_blank" rel="nofollow" href="https://builder.r-hub.io/">R-Builder</a>. I was able to test and fix on Windows during the weekend with no access to an actual windows environment.</p>
<p>The <code>NEWS</code> file summarises the release:</p>
<blockquote>
<h4>Changes in anytime version 0.1.2 (2016-12-13)</h4>
<ul>
<li>
<p>The (internal) string processing and splitting now uses Boost algorithm functions which avoids a (bizarre) bug on Windows.</p>
</li>
<li>
<p>Test coverage was increased.</p>
</li>
</ul>
</blockquote>
<p>Courtesy of <a target="_blank" rel="nofollow" href="http://dirk.eddelbuettel.com/cranberries/">CRANberries</a>, there is a comparison to <a target="_blank" rel="nofollow" href="http://dirk.eddelbuettel.com/cranberries/2016/12/13#anytime_0.1.2">the previous release</a>. More information is on the <a target="_blank" rel="nofollow" href="http://dirk.eddelbuettel.com/code/anytime.html">anytime</a> page.</p>
<p>For questions or comments use the <a target="_blank" rel="nofollow" href="https://github.com/eddelbuettel/anytime/issues">issue tracker</a> off the <a target="_blank" rel="nofollow" href="https://github.com/eddelbuettel/anytime">GitHub repo</a>.</p>
<p>
This post by <a target="_blank" rel="nofollow" href="http://dirk.eddelbuettel.com/">Dirk Eddelbuettel</a> originated on his <a target="_blank" rel="nofollow" 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>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/12/13#anytime_0.1.2"> 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 title="The R Project for Statistical Computing" rel="nofollow" href="https://www.r-project.org/">R</a> news and <a title="R tutorials" rel="nofollow" href="https://www.r-bloggers.com/search/tutorial">tutorials</a> on topics such as: <a title="Data science" rel="nofollow" href="https://www.r-bloggers.com/search/data%20science">Data science</a>, <a title="Big Data" rel="nofollow" href="https://www.r-bloggers.com/search/Big%20Data">Big Data, <a title="R jobs" rel="nofollow" href="https://www.r-users.com/">R jobs</a>, visualization (<a title="ggplot and ggplot2 tutorials" rel="nofollow" href="https://www.r-bloggers.com/search/ggplot2">ggplot2</a>, <a title="Boxplots using lattice and ggplot2 tutorials" rel="nofollow" href="https://www.r-bloggers.com/search/boxplot">Boxplots</a>, <a title="Maps and gis" rel="nofollow" href="https://www.r-bloggers.com/search/map">maps</a>, <a title="Animation in R" rel="nofollow" href="https://www.r-bloggers.com/search/animation">animation</a>), programming (<a title="RStudio IDE for R" rel="nofollow" href="https://www.r-bloggers.com/search/RStudio">RStudio</a>, <a title="Sweave and literate programming" rel="nofollow" href="https://www.r-bloggers.com/search/sweave">Sweave</a>, <a title="LaTeX in R" rel="nofollow" href="https://www.r-bloggers.com/search/LaTeX">LaTeX</a>, <a title="SQL and databases" rel="nofollow" href="https://www.r-bloggers.com/search/SQL">SQL</a>, <a title="Eclipse IDE for R" rel="nofollow" href="https://www.r-bloggers.com/search/eclipse">Eclipse</a>, <a title="git and github, Version Control System" rel="nofollow" href="https://www.r-bloggers.com/search/git">git</a>, <a title="Large data in R using Hadoop" rel="nofollow" href="https://www.r-bloggers.com/search/hadoop">hadoop</a>, <a title="Web Scraping of google, facebook, yahoo, twitter and more using R" rel="nofollow" href="https://www.r-bloggers.com/search/Web+Scraping">Web Scraping</a>) statistics (<a title="Regressions and ANOVA analysis tutorials" rel="nofollow" href="https://www.r-bloggers.com/search/regression">regression</a>, <a title="principal component analysis tutorial" rel="nofollow" href="https://www.r-bloggers.com/search/PCA">PCA</a>, <a title="Time series" rel="nofollow" href="https://www.r-bloggers.com/search/time+series">time series</a>, <a title="finance trading" rel="nofollow" href="https://www.r-bloggers.com/search/trading">trading</a>) and more...
<img height="1" alt="" width="1" src="http://feeds.feedburner.com/~r/RBloggers/~4/rvof4A9z5Xs"></a></div>