<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>IDE on R Views</title>
    <link>https://rviews.rstudio.com/tags/ide/</link>
    <description>Recent content in IDE on R Views</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Fri, 31 Mar 2017 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://rviews.rstudio.com/tags/ide/" rel="self" type="application/rss+xml" />
    
    
    
    
    <item>
      <title>March &#39;17 Tips and Tricks</title>
      <link>https://rviews.rstudio.com/2017/03/31/march-17-tips-and-tricks/</link>
      <pubDate>Fri, 31 Mar 2017 00:00:00 +0000</pubDate>
      
      <guid>https://rviews.rstudio.com/2017/03/31/march-17-tips-and-tricks/</guid>
      <description>
        


&lt;p&gt;This month’s Tips and Tricks focus is on file navigation. Many of these tips are straightforward - more tip than trick - but they can save quite a bit of time and frustration.&lt;/p&gt;
&lt;div id=&#34;open-recent&#34; class=&#34;section level3&#34;&gt;
&lt;h3&gt;Open Recent&lt;/h3&gt;
&lt;p&gt;&lt;em&gt;Please&lt;/em&gt; don’t spend time navigating through your folder structure to find a recent project or file.&lt;/p&gt;
&lt;div class=&#34;figure&#34;&gt;
&lt;img src=&#34;/post/2017-03-24-march-17-tips-and-tricks_files/recent_files_projs.png&#34; /&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;div id=&#34;go-to-filefunction&#34; class=&#34;section level3&#34;&gt;
&lt;h3&gt;Go to File/Function&lt;/h3&gt;
&lt;p&gt;RStudio automatically indexes all open files as well as files in the current project. The index includes function calls and objects within the files. To search the index, enter a search string in the &lt;code&gt;Go to file/function&lt;/code&gt; window in the main toolbar or use the keyboard shortcut &lt;code&gt;Ctrl + .&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;The search supports fuzzy matching as long as the search string is in the correct order. For example, &lt;code&gt;tiptric&lt;/code&gt; will match files and function names like &lt;code&gt;march-tips-and-tricks.Rmd&lt;/code&gt;.&lt;/p&gt;
&lt;div class=&#34;figure&#34;&gt;
&lt;img src=&#34;/post/2017-03-24-march-17-tips-and-tricks_files/go_to_file.png&#34; /&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;div id=&#34;find-in-file&#34; class=&#34;section level3&#34;&gt;
&lt;h3&gt;Find in File&lt;/h3&gt;
&lt;p&gt;In addition to the index, RStudio can quickly search the text of any file(s) for a string or regular expression. Open the &lt;code&gt;Find in Files&lt;/code&gt; dialogue by navigating through the toolbar &lt;code&gt;Edit -&amp;gt; Find in Files&lt;/code&gt; or using the keyboard shortcut &lt;code&gt;Cmd / Ctrl + Shift + F&lt;/code&gt;.&lt;/p&gt;
&lt;div class=&#34;figure&#34;&gt;
&lt;img src=&#34;/post/2017-03-24-march-17-tips-and-tricks_files/find-in-files.gif&#34; /&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;div id=&#34;tabs&#34; class=&#34;section level3&#34;&gt;
&lt;h3&gt;Tabs&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Close All and Close All Except Current&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;If you’re like me, you often end up with a whole bunch of files open and the number of tabs in the source pane causes anxiety. Don’t click through the tabs closing each individually.&lt;/p&gt;
&lt;div class=&#34;figure&#34;&gt;
&lt;img src=&#34;/post/2017-03-24-march-17-tips-and-tricks_files/close_tab.png&#34; /&gt;

&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;Search for a Tab&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;If you don’t get anxiety from multiple tabs, you may find the keyboard shortcuts for switching between tabs helpful. My favorite is &lt;code&gt;Ctrl + Shift + .&lt;/code&gt; which opens a search dialogue for the currently open tabs.&lt;/p&gt;
&lt;div class=&#34;figure&#34;&gt;
&lt;img src=&#34;/post/2017-03-24-march-17-tips-and-tricks_files/tabs.png&#34; /&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;div id=&#34;set-working-directory&#34; class=&#34;section level3&#34;&gt;
&lt;h3&gt;Set Working Directory&lt;/h3&gt;
&lt;p&gt;Sometimes I find myself inside a file and I have no idea where that file is. In this scenario, I often use the following trick to orient myself:&lt;/p&gt;
&lt;div class=&#34;figure&#34;&gt;
&lt;img src=&#34;/post/2017-03-24-march-17-tips-and-tricks_files/session_workingdir.png&#34; /&gt;

&lt;/div&gt;
&lt;p&gt;The other options, &lt;code&gt;To Project Directory&lt;/code&gt; and &lt;code&gt;To File Pane Location&lt;/code&gt; are also very helpful. These commands do not have key bindings by default, but you can create your own keyboard shortcuts for these actions: &lt;code&gt;Tools -&amp;gt; Modify Keyboard Shortcuts...&lt;/code&gt;&lt;/p&gt;
&lt;div class=&#34;figure&#34;&gt;
&lt;img src=&#34;/post/2017-03-24-march-17-tips-and-tricks_files/keyboard_shortcuts.png&#34; /&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;div id=&#34;file-pane-go-to-working-directory&#34; class=&#34;section level3&#34;&gt;
&lt;h3&gt;File Pane: Go To Working Directory&lt;/h3&gt;
&lt;p&gt;After mastering tip 5, you can easily navigate from the file pane to the working directory:&lt;/p&gt;
&lt;div class=&#34;figure&#34;&gt;
&lt;img src=&#34;/post/2017-03-24-march-17-tips-and-tricks_files/goto_wd.png&#34; /&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;div id=&#34;file-pane-go-to-project-root-directory&#34; class=&#34;section level3&#34;&gt;
&lt;h3&gt;File Pane: Go To Project Root Directory&lt;/h3&gt;
&lt;p&gt;Finally, it is really easy to go to the root of a project directory:&lt;/p&gt;
&lt;div class=&#34;figure&#34;&gt;
&lt;img src=&#34;/post/2017-03-24-march-17-tips-and-tricks_files/goto_proj.png&#34; /&gt;

&lt;/div&gt;
&lt;p&gt;Be sure to follow &lt;a href=&#34;https://twitter.com/rstudiotips&#34;&gt;@rstudiotips&lt;/a&gt; for more frequent updates. Tweet us &lt;a href=&#34;https://twitter.com/rstudio&#34;&gt;@rstudio&lt;/a&gt; if there’s a file navigation trick you wish we’d implement!&lt;/p&gt;
&lt;/div&gt;

        &lt;script&gt;window.location.href=&#39;https://rviews.rstudio.com/2017/03/31/march-17-tips-and-tricks/&#39;;&lt;/script&gt;
      </description>
    </item>
    
    <item>
      <title>February &#39;17 Tips and Tricks</title>
      <link>https://rviews.rstudio.com/2017/03/03/february-17-tips-and-tricks/</link>
      <pubDate>Fri, 03 Mar 2017 00:00:00 +0000</pubDate>
      
      <guid>https://rviews.rstudio.com/2017/03/03/february-17-tips-and-tricks/</guid>
      <description>
        

&lt;p&gt;If you spend time with an excellent programmer, one thing that immediately jumps out is how quickly she can write code. It often appears to be magic, the number of keystrokes simply can&amp;rsquo;t equal the number of characters on the screen. The secret: it doesn&amp;rsquo;t! Most programmers use a series of tricks to save the hassle of writing boilerplate code. This month, my personal goal was to spend less time typing, even if it required slowing down to master these tricks. In this post, I&amp;rsquo;ll focus on one of the easiest and most flexible tools at your disposal: &lt;a href=&#34;https://support.rstudio.com/hc/en-us/articles/204463668-Code-Snippets&#34;&gt;code snippets&lt;/a&gt;. (Astute readers will note that I&amp;rsquo;ve mentioned code snippets &lt;a href=&#34;https://www.rstudio.com/rviews/2016/11/11/easy-tricks-you-mightve-missed/&#34;&gt;before&lt;/a&gt;. They deserve the extra attention!)&lt;/p&gt;

&lt;p&gt;Code snippets are a common programming tool similar to keyboard shortcuts. A snippet of text, usually a few characters long, is used as a shortcut to create a larger piece of boilerplate code. &lt;code&gt;Tab&lt;/code&gt; navigation enables jumping through the boilerplate code to locations where customization is required.&lt;/p&gt;

&lt;p&gt;For example, one of my favorite code snippets is for creating a function. The template of an R function looks like:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;functionName &amp;lt;- function(arguments) {
  code 
}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The boilerplate - not worth typing - is:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt; &amp;lt;- function( ) {
 
}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;In RStudio, the code snippet for functions is &lt;code&gt;fun&lt;/code&gt;. Typing &lt;code&gt;fun&lt;/code&gt; and pressing &lt;code&gt;Tab&lt;/code&gt; will provide an auto-complete suggestion for the snippet. Typing &lt;code&gt;fun&lt;/code&gt; and pressing &lt;code&gt;Shift + Tab&lt;/code&gt; inserts the snippet directly. As a general typing rule, keeping your hands on the middle row of the keyboard will speed things up. I hit &lt;code&gt;Shift&lt;/code&gt; with my right pinky and &lt;code&gt;Tab&lt;/code&gt; with my left.&lt;/p&gt;

&lt;p&gt;After inserting the boilerplate code, the cursor is placed to left of the &lt;code&gt;&amp;lt;-&lt;/code&gt;. You can then quickly type the name of the function. Pressing &lt;code&gt;Tab&lt;/code&gt; places the cursor in between the parenthesis. Pressing &lt;code&gt;Tab&lt;/code&gt; again places the cursor in between the brackets. This allows you to fill in the remaining portions of the function template quickly.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Type &lt;code&gt;fun&lt;/code&gt; and &lt;code&gt;Shift + Tab&lt;/code&gt;:&lt;/strong&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;HERE &amp;lt;- function() {

}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;Pressing &lt;code&gt;Tab&lt;/code&gt; Once&lt;/strong&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt; &amp;lt;- function(HERE) {
 
}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;Pressing &lt;code&gt;Tab&lt;/code&gt; Twice&lt;/strong&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt; &amp;lt;- function() {
 HERE
 }
&lt;/code&gt;&lt;/pre&gt;

&lt;h2 id=&#34;accessing-snippets&#34;&gt;Accessing Snippets&lt;/h2&gt;

&lt;p&gt;RStudio comes with many built-in snippets. To access these snippets, navigate to &lt;code&gt;Tools&lt;/code&gt; -&amp;gt; &lt;code&gt;Global Options&lt;/code&gt; -&amp;gt; &lt;code&gt;Code&lt;/code&gt; and press &lt;code&gt;Edit Snippets&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;/post/2017-02-16-feb-17-tips-and-tricks_files/SL_code_snippets.png&#34; alt=&#34;&#34; /&gt;&lt;/p&gt;

&lt;p&gt;The menu will show all of the defined snippets. Consider the definition for the function snippet:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;snippet fun
	${1:name} &amp;lt;- function(${2:variables}) {
		${0}
	}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The snippet starts by defining the character shortcut &lt;code&gt;fun&lt;/code&gt;. The definition includes the boilerplate code. The &lt;code&gt;Tab&lt;/code&gt; behavior is defined using &lt;code&gt;${1}&lt;/code&gt; notation. The &lt;a href=&#34;https://support.rstudio.com/hc/en-us/articles/204463668-Code-Snippets&#34;&gt;code snippet&lt;/a&gt; help page describes the syntax in more detail.&lt;/p&gt;

&lt;h2 id=&#34;a-few-examples&#34;&gt;A Few Examples&lt;/h2&gt;

&lt;h3 id=&#34;ts&#34;&gt;&lt;code&gt;ts&lt;/code&gt;&lt;/h3&gt;

&lt;p&gt;Adds a time-stamped comment.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;# Mon Feb 20 07:34:03 2017 ------------------------------
&lt;/code&gt;&lt;/pre&gt;

&lt;h3 id=&#34;if&#34;&gt;&lt;code&gt;if&lt;/code&gt;&lt;/h3&gt;

&lt;p&gt;Adds the skeleton of an &lt;code&gt;if&lt;/code&gt; statement&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;if () {

}
&lt;/code&gt;&lt;/pre&gt;

&lt;h3 id=&#34;mat&#34;&gt;&lt;code&gt;mat&lt;/code&gt;&lt;/h3&gt;

&lt;p&gt;Adds the skeleton for defining a matrix.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;matrix( , nrow = , ncol = )
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;There are code snippets for other languages as well.&lt;/p&gt;

&lt;h2 id=&#34;creating-snippets&#34;&gt;Creating Snippets&lt;/h2&gt;

&lt;p&gt;Code snippets are powerful because they can be customized and created. If you find yourself repeatedly typing the same code, create a snippet. The menu of snippets in RStudio is editable. To create or modify a snippet, add your changes to the menu and click &lt;code&gt;Save&lt;/code&gt;.&lt;/p&gt;

&lt;h2 id=&#34;sharing-snippets&#34;&gt;Sharing Snippets&lt;/h2&gt;

&lt;p&gt;Once you&amp;rsquo;ve created a handful of useful code snippets, it would be generous to share. The &lt;a href=&#34;https://github.com/dgrtwo/snippr&#34;&gt;&lt;code&gt;snippr&lt;/code&gt; package&lt;/a&gt; makes this process easy.&lt;/p&gt;

&lt;p&gt;This &lt;a href=&#34;https://gist.github.com/slopp/27903daaf9fbd41afc73442b600a7618&#34;&gt;gist&lt;/a&gt; contains two of my favorites: a code snippet for creating a single file Shiny app, and a code snippet to start a ggplot.&lt;/p&gt;

&lt;p&gt;Shiny:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;snippet shiny
	library(shiny)
	ui &amp;lt;- fluidPage(
		${1:ui}
	)
	
	server &amp;lt;- function(input, output, session){
	  ${2:server}
	}
	shinyApp(ui = ui, server = server)
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;ggplot2:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;snippet gg
	ggplot(${1:data}, aes(${2:aes})) + 
	  geom_${3:geom}()
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;What are your favorite snippets?&lt;/p&gt;

        &lt;script&gt;window.location.href=&#39;https://rviews.rstudio.com/2017/03/03/february-17-tips-and-tricks/&#39;;&lt;/script&gt;
      </description>
    </item>
    
    <item>
      <title>January &#39;17 Tips and Tricks</title>
      <link>https://rviews.rstudio.com/2017/01/27/january-17-rstudio-tips-and-tricks/</link>
      <pubDate>Fri, 27 Jan 2017 00:00:00 +0000</pubDate>
      
      <guid>https://rviews.rstudio.com/2017/01/27/january-17-rstudio-tips-and-tricks/</guid>
      <description>
        &lt;p&gt;This month&amp;rsquo;s collection of Tips and Tricks comes from an excellent talk given at the 2017 RStudio::Conf in Orlando by RStudio Software Engineer Kevin Ushey.  The slides from his talk are embedded below and cover features from autocompletion to R Markdown shortcuts. Use the left and right arrow keys to change slides.&lt;/p&gt;

&lt;p&gt;Enjoy!&lt;/p&gt;

&lt;iframe src=&#34;https://rawgit.com/kevinushey/2017-rstudio-conf/master/slides.html#1&#34; width=&#34;100%&#34; height=&#34;600&#34; frameborder=&#34;0&#34; marginwidth=&#34;0&#34; marginheight=&#34;0&#34; scrolling=&#34;no&#34; style=&#34;border:1px solid #CCC; border-width:1px; margin-bottom:5px; max-width: 100%;&#34; allowfullscreen=&#34;&#34;&gt;&lt;/iframe&gt;

        &lt;script&gt;window.location.href=&#39;https://rviews.rstudio.com/2017/01/27/january-17-rstudio-tips-and-tricks/&#39;;&lt;/script&gt;
      </description>
    </item>
    
    <item>
      <title>December &#39;16 RStudio Tips and Tricks</title>
      <link>https://rviews.rstudio.com/2016/12/09/december-16-rstudio-tips-and-tricks/</link>
      <pubDate>Fri, 09 Dec 2016 00:00:00 +0000</pubDate>
      
      <guid>https://rviews.rstudio.com/2016/12/09/december-16-rstudio-tips-and-tricks/</guid>
      <description>
        

&lt;p&gt;Here is this month&amp;rsquo;s collection of RStudio Tips and Tricks. Thank you to those who responded to &lt;a href=&#34;https://www.rstudio.com/rviews/2016/11/11/easy-tricks-you-mightve-missed/&#34;&gt;last month&amp;rsquo;s post&lt;/a&gt;; many of your tips are included below! Be sure to subscribe to &lt;a href=&#34;https://twitter.com/rstudiotips&#34;&gt;@rstudiotips&lt;/a&gt; on Twitter for more.&lt;/p&gt;

&lt;p&gt;This month&amp;rsquo;s tips fall into two categories: Keyboard Shortcuts and Easier R Markdown.&lt;/p&gt;

&lt;h1 id=&#34;keyboard-shortcuts&#34;&gt;Keyboard Shortcuts&lt;/h1&gt;

&lt;p&gt;The RStudio IDE is built upon &amp;ldquo;hooks&amp;rdquo;. Hooks are actions that the IDE can take. For instance, there is a hook to create a new file. Most users interact with hooks with point-and-click interactions. (&lt;code&gt;RStudio toolbar -&amp;gt; new file&lt;/code&gt; or &lt;code&gt;File -&amp;gt; New File&lt;/code&gt;). But, there is an alternative! All of these hooks have been surfaced to end users and can be bound to a keyboard shortcut. (Some of these actions are &amp;ldquo;secret&amp;rdquo; - they aren&amp;rsquo;t exposed through point-and-click options.)&lt;/p&gt;

&lt;h2 id=&#34;custom-keyboard-shortcuts&#34;&gt;Custom Keyboard Shortcuts&lt;/h2&gt;

&lt;p&gt;To view the complete list of actions, the current keybindings, and to customize keybindings, go to: &lt;code&gt;Tools -&amp;gt; Modify Keyboard Shortcuts&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;https://www.rstudio.com/wp-content/uploads/2016/12/tips_keyboard_shortcuts.gif&#34; alt=&#34;&#34; /&gt;&lt;/p&gt;

&lt;h2 id=&#34;code-chunk-navigation&#34;&gt;Code Chunk Navigation&lt;/h2&gt;

&lt;p&gt;Define shortcuts for code chunk navigation using the previous tip. For example, &lt;code&gt;Alt+Cmd+Down&lt;/code&gt; for Next Chunk and &lt;code&gt;Alt+Cmd+Up&lt;/code&gt; for Previous Chunk.&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;https://www.rstudio.com/wp-content/uploads/2016/12/tips_codechunknav.gif&#34; alt=&#34;&#34; /&gt;&lt;/p&gt;

&lt;h2 id=&#34;assignment-operator&#34;&gt;Assignment Operator&lt;/h2&gt;

&lt;p&gt;Use &lt;code&gt;Alt+-&lt;/code&gt; (press &lt;code&gt;Alt&lt;/code&gt; at the same time as pressing &lt;code&gt;-&lt;/code&gt;). This adds the assignment operator and spacing.&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;https://www.rstudio.com/wp-content/uploads/2016/12/tips_assignNEW.gif&#34; alt=&#34;&#34; /&gt;&lt;/p&gt;

&lt;h2 id=&#34;pipe-operator&#34;&gt;Pipe Operator&lt;/h2&gt;

&lt;p&gt;Use &lt;code&gt;Cmd+Shift+m&lt;/code&gt; (for Mac) or &lt;code&gt;Ctrl+Shift+m&lt;/code&gt; (for Windows). This adds the pipe operator &lt;code&gt;%&amp;gt;%&lt;/code&gt; and spacing.&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;https://www.rstudio.com/wp-content/uploads/2016/12/tips_pipeNEW.gif&#34; alt=&#34;&#34; /&gt;&lt;/p&gt;

&lt;h1 id=&#34;easier-r-markdown&#34;&gt;Easier R Markdown&lt;/h1&gt;

&lt;h2 id=&#34;r-markdown-options&#34;&gt;R Markdown Options&lt;/h2&gt;

&lt;p&gt;R Markdown output formats include arguments specified in the YAML header. Don&amp;rsquo;t worry about remembering all of the key-value pairs; in RStudio, you can access and change the most common through a user-interface.&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;https://www.rstudio.com/wp-content/uploads/2016/12/tips_rmdoptions.gif&#34; alt=&#34;&#34; /&gt;&lt;/p&gt;

&lt;h2 id=&#34;spell-checker&#34;&gt;Spell Checker&lt;/h2&gt;

&lt;p&gt;Use the built-in spell checker when writing a R Markdown document. (Code chunks are automatically ignored.)&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;https://www.rstudio.com/wp-content/uploads/2016/12/tips_spellcheck.gif&#34; alt=&#34;&#34; /&gt;&lt;/p&gt;

&lt;h2 id=&#34;sql-code-chunks&#34;&gt;SQL Code Chunks&lt;/h2&gt;

&lt;p&gt;Execute SQL queries against database connections directly in R Markdown chunks.&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;https://www.rstudio.com/wp-content/uploads/2016/12/tips_sql.jpg&#34; alt=&#34;&#34; /&gt;&lt;/p&gt;

&lt;h2 id=&#34;r-markdown-websites&#34;&gt;R Markdown Websites&lt;/h2&gt;

&lt;p&gt;Are you building a &lt;a href=&#34;http://rmarkdown.rstudio.com/rmarkdown_websites.html&#34;&gt;website with R Markdown&lt;/a&gt;? Any RStudio project with an R Markdown website will include a Build Website option in the build pane.&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;https://www.rstudio.com/wp-content/uploads/2016/12/tips_buildpane.jpg&#34; alt=&#34;&#34; /&gt;&lt;/p&gt;

&lt;p&gt;What&amp;rsquo;s your favorite RStudio Tip?&lt;/p&gt;

        &lt;script&gt;window.location.href=&#39;https://rviews.rstudio.com/2016/12/09/december-16-rstudio-tips-and-tricks/&#39;;&lt;/script&gt;
      </description>
    </item>
    
    <item>
      <title>RStudio IDE Easy Tricks You Might&#39;ve Missed</title>
      <link>https://rviews.rstudio.com/2016/11/11/easy-tricks-you-mightve-missed/</link>
      <pubDate>Fri, 11 Nov 2016 00:00:00 +0000</pubDate>
      
      <guid>https://rviews.rstudio.com/2016/11/11/easy-tricks-you-mightve-missed/</guid>
      <description>
        

&lt;p&gt;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.&lt;/p&gt;

&lt;h2 id=&#34;tearable-panes&#34;&gt;Tearable Panes&lt;/h2&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;https://www.rstudio.com/wp-content/uploads/2016/11/tip_tearable.gif&#34; alt=&#34;&#34; /&gt;&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;https://www.rstudio.com/wp-content/uploads/2016/11/image04.png&#34; alt=&#34;&#34; /&gt;&lt;/p&gt;

&lt;h2 id=&#34;command-history&#34;&gt;Command History&lt;/h2&gt;

&lt;p&gt;In the console it is possible to scroll through the command history by clicking &lt;code&gt;Ctrl/Cmd&lt;/code&gt; and &lt;code&gt;↑&lt;/code&gt;. The command history will be filtered as code is typed into the console:&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;https://www.rstudio.com/wp-content/uploads/2016/11/tip_console.gif&#34; alt=&#34;&#34; /&gt;&lt;/p&gt;

&lt;h2 id=&#34;history-pane&#34;&gt;History Pane&lt;/h2&gt;

&lt;p&gt;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!&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;https://www.rstudio.com/wp-content/uploads/2016/11/tip_history.gif&#34; alt=&#34;&#34; /&gt;&lt;/p&gt;

&lt;h2 id=&#34;rename-in-scope&#34;&gt;Rename in Scope&lt;/h2&gt;

&lt;p&gt;This feature makes it easy to rename all instances of a variable. The tool is context aware; changing &amp;rsquo;m&amp;rsquo; to &amp;lsquo;m1&amp;rsquo; won&amp;rsquo;t change &amp;lsquo;mtcars&amp;rsquo; to &amp;lsquo;m1tcars&amp;rsquo;.&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;https://www.rstudio.com/wp-content/uploads/2016/11/tip_rename_in_scope.gif&#34; alt=&#34;&#34; /&gt;&lt;/p&gt;

&lt;h2 id=&#34;gallery-and-satellite-view-in-notebooks&#34;&gt;Gallery and Satellite View in Notebooks&lt;/h2&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;https://www.rstudio.com/wp-content/uploads/2016/11/tip_gallery_satellite.gif&#34; alt=&#34;&#34; /&gt;&lt;/p&gt;

&lt;h2 id=&#34;code-outline&#34;&gt;Code Outline&lt;/h2&gt;

&lt;p&gt;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 -&amp;gt; Insert Section).&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;https://www.rstudio.com/wp-content/uploads/2016/11/tip_outline.gif&#34; alt=&#34;&#34; /&gt;&lt;/p&gt;

&lt;h2 id=&#34;code-snippets&#34;&gt;Code Snippets&lt;/h2&gt;

&lt;p&gt;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. &lt;a href=&#34;https://support.rstudio.com/hc/en-us/articles/204463668-Code-Snippets&#34;&gt;Learn more&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;https://www.rstudio.com/wp-content/uploads/2016/11/tip_code_snippet.gif&#34; alt=&#34;&#34; /&gt;&lt;/p&gt;

&lt;h2 id=&#34;file-navigation&#34;&gt;File Navigation&lt;/h2&gt;

&lt;p&gt;Many people know of RStudio&amp;rsquo;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 (&amp;rdquo; &amp;ldquo;) to open a file explorer.&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;https://www.rstudio.com/wp-content/uploads/2016/11/tip_file_nav.gif&#34; alt=&#34;&#34; /&gt;&lt;/p&gt;

&lt;h2 id=&#34;jump-to-function-definition&#34;&gt;Jump To Function Definition&lt;/h2&gt;

&lt;p&gt;Want to dig into the innards of a function? With the cursor on a function press &lt;code&gt;F2&lt;/code&gt; to jump to the function definition, even for functions in a package.&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;https://www.rstudio.com/wp-content/uploads/2016/11/tip_goto_func.gif&#34; alt=&#34;&#34; /&gt;&lt;/p&gt;

&lt;p&gt;These are just a few of my favorite tricks. A comprehensive list is available in the &lt;a href=&#34;https://www.rstudio.com/wp-content/uploads/2016/01/rstudio-IDE-cheatsheet.pdf&#34;&gt;RStudio IDE Cheatsheet&lt;/a&gt; or follow &lt;a href=&#34;https://twitter.com/rstudiotips&#34;&gt;@rstudiotips&lt;/a&gt; on Twitter to learn a few tricks every week.&lt;/p&gt;

&lt;p&gt;What&amp;rsquo;s your favorite RStudio tip?&lt;/p&gt;

        &lt;script&gt;window.location.href=&#39;https://rviews.rstudio.com/2016/11/11/easy-tricks-you-mightve-missed/&#39;;&lt;/script&gt;
      </description>
    </item>
    
  </channel>
</rss>
