<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/rstudio-ide-easy-tricks-you-mightve-missed/"></div></div><div><a data-url="https://www.r-bloggers.com/rstudio-ide-easy-tricks-you-mightve-missed/" data-counturl="https://www.r-bloggers.com/rstudio-ide-easy-tricks-you-mightve-missed/" data-count="horizontal" data-text="RStudio IDE Easy Tricks You Might’ve Missed" 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://www.rstudio.com/rviews/2016/11/11/easy-tricks-you-mightve-missed/"> RStudio</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p><em>by Sean Lopp</em></p>
<p>The RStudio IDE reached version 1.0 this month. The IDE has come a long way since the initial release 5 and a half years ago. Many major features have been built: projects, package building tools, notebooks. During that same period, often hidden in the shadows, a growing list of smaller features has been changing lives. In celebration of version 1.0 this post hopes to spread fanfare for a few of these easy-to-miss tools.</p>
<h2>Tearable Panes</h2>
<p>Tearable panes are anything but terrible. This feature allows users to tear off data view panes and source panes facilitating the use of multiple screens.</p>
<div align="center"><img src="https://i0.wp.com/www.rstudio.com/wp-content/uploads/2016/11/tip_tearable.gif?w=456" data-recalc-dims="1"><img src="https://i1.wp.com/www.rstudio.com/wp-content/uploads/2016/11/image04.png?w=456" data-recalc-dims="1"></div>
<p> </p>
<h2>Command History</h2>
<p>In the console it is possible to scroll through the command history by clicking <code>Ctrl/Cmd</code> and <code>↑</code>. The command history will be filtered as code is typed into the console:</p>
<div align="center"><img src="https://i0.wp.com/www.rstudio.com/wp-content/uploads/2016/11/tip_console.gif?w=456" data-recalc-dims="1"></div>
<p> </p>
<h2>History Pane</h2>
<p>The history pane shows a searchable list of commands that have been run. Commands can be written to the source pane or the console. No more copy and paste from the console to a script!</p>
<div align="center"><img src="https://i1.wp.com/www.rstudio.com/wp-content/uploads/2016/11/tip_history.gif?w=456" data-recalc-dims="1"></div>
<p> </p>
<h2>Rename in Scope</h2>
<p>This feature makes it easy to rename all instances of a variable. The tool is context aware; changing ‘m’ to ‘m1’ won’t change ‘mtcars’ to ‘m1tcars’.</p>
<div align="center"><img src="https://i2.wp.com/www.rstudio.com/wp-content/uploads/2016/11/tip_rename_in_scope.gif?w=456" data-recalc-dims="1"></div>
<p> </p>
<h2>Gallery and Satellite View in Notebooks</h2>
<p>A new feature built into R Notebooks, a code chunk that produces multiple plots will produce a gallery. The plots can be viewed by toggling between thumbnails. The gallery can be expanded into a new satellite window for closer inspection.</p>
<div align="center"><img src="https://i1.wp.com/www.rstudio.com/wp-content/uploads/2016/11/tip_gallery_satellite.gif?w=456" data-recalc-dims="1"></div>
<p> </p>
<h2>Code Outline</h2>
<p>Save time scrolling with the code outline. This feature works for R Notebooks and traditional R scripts. In R Notebooks sections are delimited by the R Markdown headers. In R scripts sections are delimited by section comments (Try Code -> Insert Section).</p>
<div align="center"><img src="https://i2.wp.com/www.rstudio.com/wp-content/uploads/2016/11/tip_outline.gif?w=456" data-recalc-dims="1"></div>
<p> </p>
<h2>Code Snippets</h2>
<p>Code snippets are a shortcut to insert common boilerplate code. For instance, type fun and then Tab to insert the skeleton code for a function definition. Then hit Tab to replace the necessary components. In addition to a rich set of defaults, custom code snippets can also be created. <a target="_blank" rel="nofollow" href="https://support.rstudio.com/hc/en-us/articles/204463668-Code-Snippets">Learn more</a>.</p>
<div align="center"><img src="https://i2.wp.com/www.rstudio.com/wp-content/uploads/2016/11/tip_code_snippet.gif?w=456" data-recalc-dims="1"></div>
<p> </p>
<h2>File Navigation</h2>
<p>Many people know of RStudio’s rich set of tab complete options for functions and function arguments. Tab complete can also help find files and remove the hassle of writing out long path locations. Hit tab in between two double quotes (“ “) to open a file explorer.</p>
<div align="center"><img src="https://i0.wp.com/www.rstudio.com/wp-content/uploads/2016/11/tip_file_nav.gif?w=456" data-recalc-dims="1"></div>
<p> </p>
<h2>Jump To Function Definition</h2>
<p>Want to dig into the innards of a function? With the cursor on a function press F2 to jump to the function definition, even for functions in a package.</p>
<div align="center"><img src="https://i1.wp.com/www.rstudio.com/wp-content/uploads/2016/11/tip_goto_func.gif?w=456" data-recalc-dims="1"></div>
<p> </p>
<p>These are just a few of my favorite tricks. A comprehensive list is available in the <a target="_blank" rel="nofollow" href="https://www.rstudio.com/wp-content/uploads/2016/01/rstudio-IDE-cheatsheet.pdf">RStudio IDE Cheatsheet</a> or follow @rstudiotips on Twitter to learn a few tricks every week.</p>
<h2>What’s your favorite RStudio tip?</h2>
<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/rstudio-ide-easy-tricks-you-mightve-missed/"></div></div><div><a data-url="https://www.r-bloggers.com/rstudio-ide-easy-tricks-you-mightve-missed/" data-counturl="https://www.r-bloggers.com/rstudio-ide-easy-tricks-you-mightve-missed/" data-count="vertical" data-text="RStudio IDE Easy Tricks You Might’ve Missed" 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://www.rstudio.com/rviews/2016/11/11/easy-tricks-you-mightve-missed/"> RStudio</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/YMHakDihkSs"></a></div>