<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/a-new-version-of-dt-0-2-on-cran/"></div></div><div><a data-url="https://www.r-bloggers.com/a-new-version-of-dt-0-2-on-cran/" data-counturl="https://www.r-bloggers.com/a-new-version-of-dt-0-2-on-cran/" data-count="horizontal" data-text="A New Version of DT (0.2) on CRAN" 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="https://blog.rstudio.org/2016/08/09/a-new-version-of-dt-0-2-on-cran/"> RStudio Blog</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p>The R package<a target="_blank" href="http://rstudio.github.io/DT"> <strong>DT</strong></a> v0.2 is on <a target="_blank" href="https://cran.rstudio.com/web/packages/DT/">CRAN</a> now. You may install it from CRAN via <code>install.packages('DT')</code> or update your R packages if you have already installed it before. It has been over a year since the last CRAN release of <strong>DT</strong>, and there have been a lot of changes in both <strong>DT</strong> and the upstream <a target="_blank" href="http://datatables.net/blog/2015-08-13">DataTables</a> library. You may read the <a target="_blank" href="https://github.com/rstudio/DT/releases/tag/v0.2">release notes</a> to know all changes, and we want to highlight two major changes here:</p>
<ul>
<li>Two extensions “TableTools” and “ColVis” have been removed from DataTables, and a new extension named “Buttons” was added. See <a target="_blank" href="http://rstudio.github.io/DT/extensions.html">this page</a> for examples.</li>
<li>For tables in the server-side processing mode (the default mode for tables in Shiny), the selected row indices are integers instead of characters (row names) now. This is for consistency with the client-side mode (which returns integer indices). In many cases, it does not make much difference if you index an R object with integers or names, and we hope this will not be a breaking change to your Shiny apps.</li>
</ul>
<p>In terms of new features added in the new version of <strong>DT</strong>, the most notable ones are:</p>
<ul>
<li>Besides row selections, you can also select columns or cells. Please note the implementation is <em>not</em> based on the “<a target="_blank" href="https://datatables.net/extensions/select">Select</a>” extension of DataTables, so not all features of “Select” are available in <strong>DT</strong>. You can find examples of row/column/cell selections on <a target="_blank" href="http://rstudio.github.io/DT/shiny.html">this page</a>.</li>
<li>There are a number of new functions to modify an existing table instance in a Shiny app without rebuilding the full table widget. One significant advantage of this feature is it will be much faster and more efficient to update certain aspects of a table, e.g., you can change the table caption, or set the global search keyword of a table without making <strong>DT</strong> to create the whole table from scratch. You can even replace the data object behind the table on the fly (using <code>DT::replaceData()</code>), and after the data is updated, the table state can be preserved (e.g., sorting and filtering can remain the same).</li>
<li>A few formatting functions such as <code>formatSignif()</code> and <code>formatString()</code> were also added to the package.</li>
</ul>
<p>As always, you are welcome to test the new release and we will appreciate your feedback. Please file bug reports to <a target="_blank" href="https://github.com/rstudio/DT/issues">Github</a>, and you may ask questions on <a target="_blank" href="http://stackoverflow.com/questions/tagged/dt">StackOverflow</a> using the <code>DT</code> tag.</p>
<p> <a target="_blank" rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rstudioblog.wordpress.com/3002/"><img alt="" src="http://feeds.wordpress.com/1.0/comments/rstudioblog.wordpress.com/3002/" border="0"></a> <img alt="" src="https://i1.wp.com/pixel.wp.com/b.gif?resize=1%2C1&ssl=1" border="0" 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="https://www.r-bloggers.com/a-new-version-of-dt-0-2-on-cran/"></div></div><div><a data-url="https://www.r-bloggers.com/a-new-version-of-dt-0-2-on-cran/" data-counturl="https://www.r-bloggers.com/a-new-version-of-dt-0-2-on-cran/" data-count="vertical" data-text="A New Version of DT (0.2) on CRAN" 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="https://blog.rstudio.org/2016/08/09/a-new-version-of-dt-0-2-on-cran/"> RStudio Blog</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/?s=tutorial">tutorials</a> on topics such as: <a title="Data science" rel="nofollow" href="https://www.r-bloggers.com/?s=data%20science">Data science</a>, <a title="Big Data" rel="nofollow" href="https://www.r-bloggers.com/?s=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/?s=ggplot2">ggplot2</a>, <a title="Boxplots using lattice and ggplot2 tutorials" rel="nofollow" href="https://www.r-bloggers.com/?s=boxplot">Boxplots</a>, <a title="Maps and gis" rel="nofollow" href="https://www.r-bloggers.com/?s=map">maps</a>, <a title="Animation in R" rel="nofollow" href="https://www.r-bloggers.com/?s=animation">animation</a>), programming (<a title="RStudio IDE for R" rel="nofollow" href="https://www.r-bloggers.com/?s=RStudio">RStudio</a>, <a title="Sweave and literate programming" rel="nofollow" href="https://www.r-bloggers.com/?s=sweave">Sweave</a>, <a title="LaTeX in R" rel="nofollow" href="https://www.r-bloggers.com/?s=LaTeX">LaTeX</a>, <a title="SQL and databases" rel="nofollow" href="https://www.r-bloggers.com/?s=SQL">SQL</a>, <a title="Eclipse IDE for R" rel="nofollow" href="https://www.r-bloggers.com/?s=eclipse">Eclipse</a>, <a title="git and github, Version Control System" rel="nofollow" href="https://www.r-bloggers.com/?s=git">git</a>, <a title="Large data in R using Hadoop" rel="nofollow" href="https://www.r-bloggers.com/?s=hadoop">hadoop</a>, <a title="Web Scraping of google, facebook, yahoo, twitter and more using R" rel="nofollow" href="https://www.r-bloggers.com/?s=Web+Scraping">Web Scraping</a>) statistics (<a title="Regressions and ANOVA analysis tutorials" rel="nofollow" href="https://www.r-bloggers.com/?s=regression">regression</a>, <a title="principal component analysis tutorial" rel="nofollow" href="https://www.r-bloggers.com/?s=PCA">PCA</a>, <a title="Time series" rel="nofollow" href="https://www.r-bloggers.com/?s=time+series">time series</a>, <a title="finance trading" rel="nofollow" href="https://www.r-bloggers.com/?s=trading">trading</a>) and more...
<img height="1" alt="" width="1" src="http://feeds.feedburner.com/~r/RBloggers/~4/LuKxsO105FI"></a></div>