<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/announcing-rstudio-v1-0/"></div></div><div><a data-url="https://www.r-bloggers.com/announcing-rstudio-v1-0/" data-counturl="https://www.r-bloggers.com/announcing-rstudio-v1-0/" data-count="horizontal" data-text="Announcing RStudio v1.0!" 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/11/01/announcing-rstudio-v1-0/"> RStudio Blog</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p>Today we’re very pleased to announce the availability of RStudio Version 1.0! Version 1.0 is our 10th major release since the initial launch in February 2011 (see the full release history below), and our biggest ever! Highlights include:</p>
<ul>
<li>Authoring tools for <a target="_blank" rel="nofollow" href="http://rmarkdown.rstudio.com/r_notebooks.html">R Notebooks</a>.</li>
<li>Integrated support for the <a target="_blank" rel="nofollow" href="http://spark.rstudio.com/">sparklyr</a> package (R interface to Spark).</li>
<li>Performance profiling via integration with the <a target="_blank" rel="nofollow" href="https://github.com/rstudio/profvis">profvis</a> package.</li>
<li>Enhanced data import tools based on the <a target="_blank" rel="nofollow" href="https://github.com/hadley/readr">readr</a>, <a target="_blank" rel="nofollow" href="https://github.com/hadley/readxl">readxl</a> and <a target="_blank" rel="nofollow" href="https://github.com/hadley/haven">haven</a> packages.</li>
<li>Authoring tools for R Markdown <a target="_blank" rel="nofollow" href="http://rmarkdown.rstudio.com/rmarkdown_websites.html">websites</a> and the <a target="_blank" rel="nofollow" href="https://bookdown.org/">bookdown</a> package.</li>
<li>Many other miscellaneous enhancements and bug fixes.</li>
</ul>
<p>We hope you <a target="_blank" rel="nofollow" href="https://www.rstudio.com/products/rstudio/download/">download version 1.0</a> now and as always <a target="_blank" rel="nofollow" href="https://support.rstudio.com/hc/en-us">let us know</a> what you think.</p>
<h2>R Notebooks</h2>
<p><a target="_blank" rel="nofollow" href="http://rmarkdown.rstudio.com/r_notebooks.html">R Notebooks</a> add a powerful notebook authoring engine to <a target="_blank" rel="nofollow" href="http://rmarkdown.rstudio.com/">R Markdown</a>. Notebook interfaces for data analysis have compelling advantages including the close association of code and output and the ability to intersperse narrative with computation. Notebooks are also an excellent tool for teaching and a convenient way to share analyses.</p>
<div><img height="534" width="500" src="https://i1.wp.com/rmarkdown.rstudio.com/images/notebook-demo.png"></div>
<h3>Interactive R Markdown</h3>
<p>As an authoring format, R Markdown bears many similarities to traditional notebooks like <a target="_blank" rel="nofollow" href="https://jupyter.org/">Jupyter</a> and <a target="_blank" rel="nofollow" href="http://beakernotebook.com/">Beaker</a>. However, code in notebooks is typically executed interactively, one cell at a time, whereas code in R Markdown documents is typically executed in batch.</p>
<p>R Notebooks bring the interactive model of execution to your R Markdown documents, giving you the capability to work quickly and iteratively in a notebook interface without leaving behind the plain-text tools, compatibility with version control, and production-quality output you’ve come to rely on from R Markdown.</p>
<div>
<h3>Iterate Quickly</h3>
<p>In a typical R Markdown document, you must re-knit the document to see your changes, which can take some time if it contains non-trivial computations. R Notebooks, however, let you run code and see the results in the document immediately. They can include just about any kind of content R produces, including console output, plots, data frames, and interactive <a target="_blank" rel="nofollow" href="http://www.htmlwidgets.org/">HTML widgets</a>.</p>
<p><img sizes="(max-width: 476px) 100vw, 476px" alt="screen-shot-2016-09-20-at-4-16-47-pm" class="wp-image-3144" src="https://i0.wp.com/rstudioblog.files.wordpress.com/2016/09/screen-shot-2016-09-20-at-4-16-47-pm.png?w=456&ssl=1" data-recalc-dims="1"></p>
<p>You can see the progress of the code as it runs:</p>
<p><img sizes="(max-width: 474px) 100vw, 474px" alt="screen-shot-2016-09-21-at-10-52-02-am" class="wp-image-3184" src="https://i2.wp.com/rstudioblog.files.wordpress.com/2016/09/screen-shot-2016-09-21-at-10-52-02-am.png?w=456&ssl=1" data-recalc-dims="1"></p>
<p>You can preview the results of individual inline expressions, too:</p>
<p><img sizes="(max-width: 196px) 100vw, 196px" alt="notebook-inline-output" class="wp-image-3149" src="https://i0.wp.com/rstudioblog.files.wordpress.com/2016/09/notebook-inline-output.png?w=456&ssl=1" data-recalc-dims="1"></p>
<p>Even your LaTeX equations render in real-time as you type:</p>
<p><img sizes="(max-width: 477px) 100vw, 477px" alt="notebook-mathjax" class="wp-image-3111" src="https://i2.wp.com/rstudioblog.files.wordpress.com/2016/09/notebook-mathjax.png?w=456&ssl=1" data-recalc-dims="1"></p>
<p>This focused mode of interaction doesn’t require you to keep the console, viewer, or output panes open. Everything you need is at your fingertips in the editor, reducing distractions and helping you concentrate on your analysis. When you’re done, you’ll have a formatted, reproducible record of what you’ve accomplished, with plenty of context, perfect for your own records or sharing with others.</p>
</div>
<h2>Spark with sparklyr</h2>
<p>The <a target="_blank" rel="nofollow" href="http://spark.rstudio.com/">sparklyr package</a> is a new R interface for Apache Spark. RStudio now includes integrated support for Spark and the sparklyr package, including tools for:</p>
<ul>
<li>Creating and managing Spark connections</li>
<li>Browsing the tables and columns of Spark DataFrames</li>
<li>Previewing the first 1,000 rows of Spark DataFrames</li>
</ul>
<p>Once you’ve installed the sparklyr package, you should find a new <strong>Spark</strong> pane within the IDE. This pane includes a <strong>New Connection</strong> dialog which can be used to make connections to local or remote Spark instances:</p>
<p><img height="350" width="500" src="https://i2.wp.com/spark.rstudio.com/images/spark-connect.png"></p>
<p>Once you’ve connected to Spark you’ll be able to browse the tables contained within the Spark cluster:</p>
<p><img height="307" width="499" src="https://i0.wp.com/spark.rstudio.com/images/spark-tab.png"></p>
<p>The Spark DataFrame preview uses the standard RStudio data viewer:</p>
<p><img height="349" width="500" src="https://i1.wp.com/spark.rstudio.com/images/spark-dataview.png"></p>
<h2>Profiling with profvis</h2>
<div>
<p>“How can I make my code faster?”</p>
<p>If you write R code, then you’ve probably asked yourself this question. A profiler is an important tool for doing this: it records how the computer spends its time, and once you know that, you can focus on the slow parts to make them faster.</p>
<p>RStudio now includes integrated support for profiling R code and for visualizing profiling data. R itself has long had a built-in profiler, and now it’s easier than ever to use the profiler and interpret the results.</p>
<p>To profile code with RStudio, select it in the editor, and then click on <strong>Profile -> Profile Selected Line(s)</strong>. R will run that code with the profiler turned on, and then open up an interactive visualization.</p>
<p><a target="_blank" rel="nofollow" href="https://i0.wp.com/rstudioblog.files.wordpress.com/2016/05/profile1.gif?ssl=1"><img class="wp-image-2833" src="https://i0.wp.com/rstudioblog.files.wordpress.com/2016/05/profile1.gif?resize=456%2C393&ssl=1" data-recalc-dims="1"></a></p>
<p>In the visualization, there are two main parts: on top, there is the code with information about the amount of time spent executing each line, and on the bottom there is a <em>flame graph</em>, which shows what R was doing over time. In the flame graph, the horizontal direction represents time, moving from left to right, and the vertical direction represents the <em>call stack</em>, which are the functions that are currently being called. (Each time a function calls another function, it goes on top of the stack, and when a function exits, it is removed from the stack.)</p>
<p><img sizes="(max-width: 500px) 100vw, 500px" alt="profile.png" class="wp-image-2825" src="https://i1.wp.com/rstudioblog.files.wordpress.com/2016/05/profile.png?resize=456%2C299&ssl=1" data-recalc-dims="1"></p>
<p>The <strong>Data</strong> tab contains a call tree, showing which function calls are most expensive:</p>
<p><a target="_blank" rel="nofollow" href="https://i1.wp.com/rstudioblog.files.wordpress.com/2016/05/data1.png?ssl=1"><img sizes="(max-width: 501px) 100vw, 501px" alt="Profiling data pane" class="wp-image-2835" src="https://i1.wp.com/rstudioblog.files.wordpress.com/2016/05/data1.png?resize=456%2C251&ssl=1" data-recalc-dims="1"></a></p>
<p>Armed with this information, you’ll know what parts of your code to focus on to speed things up!</p>
<h2>Data Import</h2>
<p>RStudio now integrates with the <a target="_blank" rel="nofollow" href="http://readr.tidyverse.org/">readr</a>, <a target="_blank" rel="nofollow" href="https://cran.r-project.org/web/packages/readxl/index.html">readxl</a>, and <a target="_blank" rel="nofollow" href="http://haven.tidyverse.org/">haven</a> packages to provide comprehensive tools for importing data from many text file formats, Excel worksheets, as well as SAS, Stata, and SPSS data files. The tools are focused on interactively refining an import then providing the code required to reproduce the import on new datasets.</p>
<p>For example, here’s the workflow we would use to import the Excel worksheet at <a target="_blank" rel="nofollow" href="http://www.fns.usda.gov/sites/default/files/pd/slsummar.xls">http://www.fns.usda.gov/sites/default/files/pd/slsummar.xls</a>.</p>
<p>First provide the dataset URL and review the import in preview mode (notice that this file contains two tables and as a result requires the first few rows to be removed):</p>
<p><img alt="" src="https://i1.wp.com/support.rstudio.com/hc/en-us/article_attachments/206278038/Screen_Shot_2016-04-08_at_3.12.13_PM.png?resize=456%2C285&ssl=1" data-recalc-dims="1"></p>
<p>We can clean this up by skipping 6 rows from this file and unchecking the “First Row as Names” checkbox:</p>
<p><img alt="" src="https://i0.wp.com/support.rstudio.com/hc/en-us/article_attachments/206278068/Screen_Shot_2016-04-08_at_3.12.21_PM.png?resize=456%2C285&ssl=1" data-recalc-dims="1"></p>
<p>The file is looking better but some columns are being displayed as strings when they are clearly numerical data. We can fix this by selecting “numeric” from the column drop-down:</p>
<p><img alt="" src="https://i1.wp.com/support.rstudio.com/hc/en-us/article_attachments/206278098/Screen_Shot_2016-04-08_at_3.12.26_PM.png?resize=456%2C285&ssl=1" data-recalc-dims="1"></p>
<p>The final step is to click “Import” to run the code displayed under “Code Preview” and import the data into R. The code is executed within the console and imported dataset is displayed automatically:</p>
<p><img alt="" src="https://i2.wp.com/support.rstudio.com/hc/en-us/article_attachments/206328087/Screen_Shot_2016-04-08_at_3.12.31_PM.png?resize=456%2C285&ssl=1" data-recalc-dims="1"></p>
</div>
<p>Note that rather than executing the import we could have just copied and pasted the import code and included it within any R script.</p>
<h2>RStudio Release History</h2>
<p>We started working on RStudio in November of 2008 (8 years ago!) and had our first public release in February of 2011. Here are highlights of the various releases through the years:</p>
<table>
<tbody>
<tr>
<th width="80px">Version</th>
<th width="100px">Date</th>
<th>Highlights</th>
</tr>
<tr>
<td valign="top"> 0.92</td>
<td valign="top"> Feb 2011</td>
<td>
<ul>
<li>Initial public release</li>
</ul>
</td>
</tr>
<tr>
<td valign="top"> 0.93</td>
<td valign="top"> Apr 2011</td>
<td>
<ul>
<li>Interactive plotting with manipulate</li>
<li>Source editor themes</li>
<li>Configurable workspace layout</li>
</ul>
</td>
</tr>
<tr>
<td valign="top"> 0.94</td>
<td valign="top"> Jun 2011</td>
<td>
<ul>
<li>Enhanced plot export</li>
<li>Enhanced package installation and management</li>
<li>Enhanced history management</li>
</ul>
</td>
</tr>
<tr>
<td valign="top"> 0.95</td>
<td valign="top"> Jan 2012</td>
<td>
<ul>
<li>RStudio project system</li>
<li>Code navigation (typeahead search, go to definition)</li>
<li>Version control integration (Git and Subversion)</li>
</ul>
</td>
</tr>
<tr>
<td valign="top"> 0.96</td>
<td valign="top"> May 2012</td>
<td>
<ul>
<li>Enhanced authoring for Sweave</li>
<li>Web publishing with R Markdown</li>
<li>Code folding and many other editing enhancements</li>
</ul>
</td>
</tr>
<tr>
<td valign="top"> 0.97</td>
<td valign="top"> Oct 2012</td>
<td>
<ul>
<li>Package development tools</li>
<li>Vim editing mode</li>
<li>More intelligent R auto-indentation</li>
</ul>
</td>
</tr>
<tr>
<td valign="top"> 0.98</td>
<td valign="top"> Dec 2013</td>
<td>
<ul>
<li>Interactive debugging tools</li>
<li>Enhanced environment pane</li>
<li>Viewer pane for web content / htmlwidgets</li>
</ul>
</td>
</tr>
<tr>
<td valign="top"> 0.98b</td>
<td valign="top"> Jun 2014</td>
<td>
<ul>
<li>R Markdown v2 (publish to PDF, Word, and more)</li>
<li>Integrated tools for Shiny application development</li>
<li>Editor support for XML, SQL, Python, and Bash</li>
</ul>
</td>
</tr>
<tr>
<td valign="top"> 0.99</td>
<td valign="top"> May 2015</td>
<td>
<ul>
<li>Data viewer with support for large datasets, filtering, searching, and sorting</li>
<li>Major enhancements to R and C/C++ code completion and inline code diagnostics</li>
<li>Multiple cursors, tab re-ordering, enhanced Vim mode</li>
</ul>
</td>
</tr>
<tr>
<td valign="top"> 0.99b</td>
<td valign="top"> Feb 2016</td>
<td>
<ul>
<li>Emacs editing mode</li>
<li>Multi-window source editing</li>
<li>Customizable keyboard shortcuts</li>
<li>RStudio Addins</li>
</ul>
</td>
</tr>
<tr>
<td valign="top"> 1.0</td>
<td valign="top"> Nov 2016</td>
<td>
<ul>
<li>Authoring tools for R Notebooks</li>
<li>Integrated support for sparklyr (R interface to Spark)</li>
<li>Enhanced data import tools</li>
<li>Performance profiling via integration with profvis</li>
</ul>
</td>
</tr>
</tbody>
</table>
<p>The <a target="_blank" rel="nofollow" href="https://support.rstudio.com/hc/en-us/articles/200716783-RStudio-Release-History">RStudio Release History</a> page on our support website provides a complete history of all major and minor point releases.</p>
<p> </p>
<p> <a target="_blank" rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rstudioblog.wordpress.com/3487/"><img alt="" src="http://feeds.wordpress.com/1.0/comments/rstudioblog.wordpress.com/3487/" 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/announcing-rstudio-v1-0/"></div></div><div><a data-url="https://www.r-bloggers.com/announcing-rstudio-v1-0/" data-counturl="https://www.r-bloggers.com/announcing-rstudio-v1-0/" data-count="vertical" data-text="Announcing RStudio v1.0!" 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/11/01/announcing-rstudio-v1-0/"> 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/25PECTwgI6Y"></a></div>