<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Architect – Advanced</title>
    <link>/documentation/advanced/</link>
    <description>Recent content in Advanced on Architect</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    
	  <atom:link href="/documentation/advanced/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Documentation: Defining R Snippets</title>
      <link>/documentation/advanced/defining-r-snippets/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/documentation/advanced/defining-r-snippets/</guid>
      <description>
        
        
        &lt;p&gt;R Snippets are chunks of R code that you can assign to a keyboard shortcut.
Architect ships with some default, simple snippets, but you can define
customized snippets to perform far more complex tasks.&lt;/p&gt;
&lt;p&gt;Access the snippets menu by typing &amp;lsquo;R Code Snippets&amp;rsquo; into the &lt;a href=&#34;../../getting-started/tips-and-tricks#quick-search&#34;&gt;Quick
Search&lt;/a&gt; bar (&lt;strong&gt;Ctrl + 3&lt;/strong&gt;), or navigate to it
via the menus by selecting &lt;strong&gt;Window &amp;gt; Preferences &amp;gt; StatET &amp;gt; Run/Debug &amp;gt; R Code
Snippets&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;../img/advanced_snippet.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;
&lt;p&gt;The above snippet allows you to switch the working directory of your active
console at the push of a button. But to do so, we must first associate a key
binding to the command. If you click the &lt;strong&gt;Keys&lt;/strong&gt; button at the bottom of the &lt;strong&gt;R
Code Snippets&lt;/strong&gt; window, you&amp;rsquo;ll reach a menu for &lt;a href=&#34;../../getting-started/tips-and-tricks#customizing-keyboard-shortcuts&#34;&gt;customizing keyboard
shortcuts&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;../img/advanced_snippetHotkey.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;
&lt;p&gt;Find the desired snippet, then assign your command. Above, we assigned the
command &lt;strong&gt;Ctrl + r&lt;/strong&gt;, &lt;strong&gt;Ctrl + w&lt;/strong&gt; to the change working directory snippet. This
allows us to click on a folder in our &lt;a href=&#34;../../getting-started/interface#project-explorer&#34;&gt;Project
Explorer&lt;/a&gt;, enter the chosen command, and our
active console will change its working directory to that folder.&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Documentation: Debugging</title>
      <link>/documentation/advanced/debugging/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/documentation/advanced/debugging/</guid>
      <description>
        
        
        &lt;p&gt;Architect has an advanced tool for visual debugging. In this exercise, we&amp;rsquo;ll
use the following code to demonstrate the debugging functionality:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-r&#34; data-lang=&#34;r&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#000&#34;&gt;myFun&lt;/span&gt; &lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;&amp;lt;-&lt;/span&gt; &lt;span style=&#34;color:#000&#34;&gt;function&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#000&#34;&gt;x&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;){&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#000&#34;&gt;y&lt;/span&gt; &lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;&amp;lt;-&lt;/span&gt; &lt;span style=&#34;color:#000&#34;&gt;x&lt;/span&gt; &lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;+&lt;/span&gt; &lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;2&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#000&#34;&gt;z&lt;/span&gt; &lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;&amp;lt;-&lt;/span&gt; &lt;span style=&#34;color:#000&#34;&gt;y&lt;/span&gt; &lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;-&lt;/span&gt; &lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;3&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#000&#34;&gt;myOtherFun&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#000&#34;&gt;z&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#000&#34;&gt;myOtherFun&lt;/span&gt; &lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;&amp;lt;-&lt;/span&gt; &lt;span style=&#34;color:#000&#34;&gt;function&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#000&#34;&gt;x&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#000&#34;&gt;m&lt;/span&gt; &lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;&amp;lt;-&lt;/span&gt; &lt;span style=&#34;color:#000&#34;&gt;matrix&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#000&#34;&gt;diag&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#000&#34;&gt;x&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;),&lt;/span&gt; &lt;span style=&#34;color:#000&#34;&gt;ncol&lt;/span&gt; &lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;2&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#000&#34;&gt;colnames&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#000&#34;&gt;m&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;&amp;lt;-&lt;/span&gt; &lt;span style=&#34;color:#000&#34;&gt;c&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;A&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;B&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#000&#34;&gt;return&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#000&#34;&gt;m&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#000&#34;&gt;data&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#000&#34;&gt;cars&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; &lt;span style=&#34;color:#8f5902;font-style:italic&#34;&gt;# myFun(6)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;launch-via-debugger-icon&#34;&gt;Launch via debugger icon&lt;/h2&gt;
&lt;p&gt;The visual debugger can only be used within an R session launched by the
Debugger icon (&lt;img src=&#34;../img/advanced_debuggerIcon.png&#34; alt=&#34;&#34;&gt;) in the top toolbar.
Click on the icon and select the 
&lt;a href=&#34;../installing-different-versions-of-r&#34;&gt;R version&lt;/a&gt; you&amp;rsquo;d like to use.&lt;/p&gt;
&lt;h2 id=&#34;set-a-breakpoint&#34;&gt;Set a breakpoint&lt;/h2&gt;
&lt;p&gt;Visual debugging works with the concept of &lt;strong&gt;breakpoints&lt;/strong&gt;. By setting a
breakpoint, you instruct Architect to pause the evaluation of code at a given
line. This allows you to quickly get under the hood of complex chunks of code
and inspect the values of variables.&lt;/p&gt;
&lt;p&gt;To set a breakpoint, double click in the &amp;ldquo;gutter&amp;rdquo; on the line where you&amp;rsquo;d like
evaluation to be paused.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;../img/advanced_gutter.gif&#34; alt=&#34;&#34;&gt;&lt;/p&gt;
&lt;p&gt;You can set multiple breakpoints in the same script.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;../img/advanced_multiple.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;
&lt;p&gt;Now, when we run code, evaluation will be paused when either breakpoint is
reached.&lt;/p&gt;
&lt;h2 id=&#34;source-the-script&#34;&gt;Source the script&lt;/h2&gt;
&lt;p&gt;The last preparatory step is to source the script you intend to debug. Source
the script by typing &lt;strong&gt;Ctrl+r, Ctrl+s&lt;/strong&gt;. Our breakpoints will update visually
with a check mark to show we are ready to debug:
&lt;img src=&#34;../img/advanced_breakpoint.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;
&lt;h2 id=&#34;run-code&#34;&gt;Run code&lt;/h2&gt;
&lt;p&gt;With our breakpoints set, we run the code by calling:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-r&#34; data-lang=&#34;r&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#000&#34;&gt;myFun&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;6&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;When a breakpoint is reached, the debug perspective launches automatically.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;../img/advanced_debugPerspective.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;
&lt;p&gt;Note that you can toggle to your previous perspective with the toggler in the
top-right corner (&lt;img src=&#34;../img/advanced_toggler.png&#34; alt=&#34;&#34;&gt;).&lt;/p&gt;
&lt;p&gt;Inside of the debugging view, we have access to debug-specific commands:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;img src=&#34;../img/advanced_stepInto.png&#34; alt=&#34;&#34;&gt; (F5): execute the current line and
move to the next line. If the current line contains a function call, the
debugger will step inside of that function.&lt;/li&gt;
&lt;li&gt;&lt;img src=&#34;../img/advanced_stepOver.png&#34; alt=&#34;&#34;&gt; (F6): execute the current line of code
and move to the next, without stepping into any called functions&lt;/li&gt;
&lt;li&gt;&lt;img src=&#34;../img/advanced_stepReturn.png&#34; alt=&#34;&#34;&gt; (F7): steps out of the currently
executed function and returns to that function&amp;rsquo;s caller&lt;/li&gt;
&lt;li&gt;&lt;img src=&#34;../img/advanced_resume.png&#34; alt=&#34;&#34;&gt; (F8): resume code evaluation until the
next breakpoint&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;conditional-breakpoints&#34;&gt;Conditional Breakpoints&lt;/h2&gt;
&lt;p&gt;Suppose we would like a breakpoint to trigger only if a certain condition is
met. In a trivial example, say we have a loop that will run 10 times, but we
only want the breakpoint to trigger on the ninth iteration.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;../img/advanced_conditional.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;
&lt;p&gt;We can set such a condition in the breakpoint window.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;../img/advanced_conditionalBreak.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;
&lt;h2 id=&#34;debugging-installed-packages&#34;&gt;Debugging Installed Packages&lt;/h2&gt;
&lt;p&gt;If you&amp;rsquo;ve installed a package in Architect via 
&lt;a href=&#34;../building-testing-and-installing-r-packages#building-testing-and-installing-r-packages&#34;&gt;R CMD INSTALL&lt;/a&gt;, you can debug it by placing a breakpoint within a function and calling that function.&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Documentation: Git Repositories</title>
      <link>/documentation/advanced/git-repositories/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/documentation/advanced/git-repositories/</guid>
      <description>
        
        
        &lt;p&gt;You can link a directory to a git repository through the &amp;ldquo;Git Repository&amp;rdquo;
window. Access this window by &lt;a href=&#34;../../getting-started/tips-and-tricks#quick-search&#34;&gt;quick searching&lt;/a&gt; &amp;lsquo;git repository&amp;rsquo;,
or through the main menus via &lt;strong&gt;Window &amp;gt; Show View &amp;gt; Other &amp;gt; Git &amp;gt; Git
Repositories&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;This window gives controls for adding, cloning and creating git repositories.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;img src=&#34;../img/advanced_gitAdd.png&#34; alt=&#34;&#34;&gt;: add an existing local Git repository&lt;/li&gt;
&lt;li&gt;&lt;img src=&#34;../img/advanced_gitClone.png&#34; alt=&#34;&#34;&gt;: clone a Git repository&lt;/li&gt;
&lt;li&gt;&lt;img src=&#34;../img/advanced_gitCreate.png&#34; alt=&#34;&#34;&gt;: create a new local Git repository&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Once you have a local folder associated with a git repository, create a
project in that folder, as demonstrated in the &lt;a href=&#34;../../getting-started/first-project#projects-in-other-directories&#34;&gt;Your
First Project&lt;/a&gt; section.&lt;/p&gt;
&lt;p&gt;Git actions can then be performed by right-clicking a project and accessing the
&lt;strong&gt;Team&lt;/strong&gt; menu. All Git repository interactions are powered by the Eclipse EGit plugin.
Click &lt;a href=&#34;http://wiki.eclipse.org/EGit/User_Guide&#34;&gt;here&lt;/a&gt; for a comprehensive &lt;a href=&#34;http://wiki.eclipse.org/EGit/User_Guide&#34;&gt;EGit user guide&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;../img/advanced_gitTeam.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Documentation: Installing Different Versions of R</title>
      <link>/documentation/advanced/installing-different-versions-of-r/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/documentation/advanced/installing-different-versions-of-r/</guid>
      <description>
        
        
        &lt;p&gt;Architect ships with an embedded, recent version of R. To configure another
version for use within Architect, use the following steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Install the desired version of R.&lt;/li&gt;
&lt;li&gt;Open the newly installed version of R and install packages &lt;code&gt;rj&lt;/code&gt; and &lt;code&gt;rj.gd&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-r&#34; data-lang=&#34;r&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#000&#34;&gt;install.packages&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#000&#34;&gt;c&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;rj&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;rj.gd&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;),&lt;/span&gt; &lt;span style=&#34;color:#000&#34;&gt;repos&lt;/span&gt;&lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;https://download.walware.de/rj-4.0&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;ol start=&#34;3&#34;&gt;
  &lt;li&gt;In Architect, select from the main menu &lt;b&gt;Run &gt; Run Configurations&lt;/b&gt;, and
   navigate to the &lt;b&gt;R Console&lt;/b&gt; section. From there, click the button &lt;b&gt;New
   launch configuration&lt;/b&gt;. &lt;/li&gt;
  &lt;li&gt;Click on the &lt;b&gt;Configure...&lt;/b&gt; button in the &lt;b&gt;R Config&lt;/b&gt; tab. &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;img src=&#34;../img/advanced_configure.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;
&lt;ol start=&#34;5&#34;&gt;
  &lt;li&gt;Click &lt;b&gt;Add...&lt;/b&gt; to add the new R installation. &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;img src=&#34;../img/advanced_add.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;
&lt;ol start=&#34;6&#34;&gt;
  &lt;li&gt;Name your installation (e.g. R 3.4.0), then in the &lt;b&gt;Location
     (R_HOME)&lt;/b&gt; field, navigate to the installed R folder.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;img src=&#34;../img/advanced_configR.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;
&lt;ol start=&#34;7&#34;&gt;
  &lt;li&gt;Click the button titled &lt;b&gt;Detect Default Properties/Settings&lt;/b&gt; (see above). 
   Then click &lt;b&gt;OK&lt;/b&gt;. Your R environments should now look something like this:&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;img src=&#34;../img/advanced_rEnvironments.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;
&lt;ol start=&#34;8&#34;&gt;
  &lt;li&gt;Click &lt;b&gt;Apply&lt;/b&gt;.&lt;/li&gt;
  &lt;li&gt;On the &lt;b&gt;Run Configurations&lt;/b&gt; screen, &lt;b&gt;R Config&lt;/b&gt; tab, choose the new
     configuration (e.g. R 3.4.0) for the &lt;b&gt;Selected Configuration&lt;/b&gt; field, and
     click &lt;b&gt;Apply&lt;/b&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;img src=&#34;../img/advanced_finalStep.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;
&lt;p&gt;In order to make your configuration selectable from the Run and Debug dropdown menus, check the checkboxes of the &lt;strong&gt;Display in favorites menu&lt;/strong&gt; section of the &lt;strong&gt;Common&lt;/strong&gt; tab, as seen below.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;../img/advanced_runConfigurationsCommon.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;
&lt;p&gt;You may now run the new R configuration by selecting it via the triangle next
to the &lt;img src=&#34;../img/interface_greenplay.png&#34; alt=&#34;&#34;&gt; button in the top menu.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;../img/advanced_runNewR.gif&#34; alt=&#34;&#34;&gt;&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Documentation: Building, Testing and Installing R Packages</title>
      <link>/documentation/advanced/building-testing-and-installing-r-packages/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/documentation/advanced/building-testing-and-installing-r-packages/</guid>
      <description>
        
        
        &lt;p&gt;Architect ships with a suite of tools to support R package development. If
you&amp;rsquo;re new to developing R packages, Hilary Parker posted a very &lt;a href=&#34;https://hilaryparker.com/2014/04/29/writing-an-r-package-from-scratch/&#34;&gt;useful
blog&lt;/a&gt; on
how to write an R package from scratch.&lt;/p&gt;
&lt;p&gt;This section assumes you have the structure of an R package more or less in
place already. In the top toolbar, clicking the triangle of the External Tools
button (&lt;img src=&#34;../img/advanced_externalTools.png&#34; alt=&#34;&#34;&gt;) opens a list of default
tools for R packages (as well as some tools for generating various document
types). To customize these, see the section 
&lt;a href=&#34;../external-tool-configuration#external-tool-configuration&#34;&gt;External Tool Configuration&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;../img/advanced_exToolsFullWindow.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;
&lt;p&gt;Once the package is in place, select a tool to check, build or install it.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;../img/advanced_installPackage.gif&#34; alt=&#34;&#34;&gt;&lt;/p&gt;
&lt;h2 id=&#34;package-projects&#34;&gt;Package Projects&lt;/h2&gt;
&lt;p&gt;When &lt;a href=&#34;../../getting-started/first-project#using-project-explorer-to-create-a-project&#34;&gt;creating a new project&lt;/a&gt;, 
you have the option to create an &amp;lsquo;R Package Project&amp;rsquo; instead of &amp;lsquo;R Project&amp;rsquo;.
This is largely the same as creating an &amp;lsquo;R Project&amp;rsquo;, but it allows you to use &lt;a href=&#34;../defining-r-snippets&#34;&gt;R
code snippets&lt;/a&gt; that refer directly to your package.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;../img/advanced_snippetRox.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;
&lt;p&gt;There is a default snippet for adding roxygen documentation to an R package.
For instructions on defining additional snippets or assigning them to hotkeys,
see the &lt;a href=&#34;../defining-r-snippets&#34;&gt;Defining R Snippets&lt;/a&gt; section.&lt;/p&gt;
&lt;h2 id=&#34;generate-roxygen-documentation&#34;&gt;Generate Roxygen Documentation&lt;/h2&gt;
&lt;p&gt;Packaged functions require proper documentation. This can be done automatically in 
Architect. Under the Source menu, select &lt;strong&gt;Generate Element Comment (Roxygen)&lt;/strong&gt;, 
and structured documentation will be generated for a selected function. The parameters are
pulled automatically from your function code.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;../img/advanced_generateRoxygen.gif&#34; alt=&#34;&#34;&gt;&lt;/p&gt;
&lt;p&gt;One can further customize the default code that is generated 
by &lt;a href=&#34;../../getting-started/tips-and-tricks#quick-search&#34;&gt;Quick Searching&lt;/a&gt; the &lt;strong&gt;Code Generation&lt;/strong&gt; preferences menu. Additionally,
you can assign the roxygen documentation to a 
&lt;a href=&#34;../../getting-started/tips-and-tricks#customizing-keyboard-shortcuts&#34;&gt;hotkey&lt;/a&gt;.&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Documentation: External Tool Configuration</title>
      <link>/documentation/advanced/external-tool-configuration/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/documentation/advanced/external-tool-configuration/</guid>
      <description>
        
        
        &lt;p&gt;To modify the existing External Tools, or add new ones, use the External Tool
Configuration Window. This is particularly useful after you&amp;rsquo;ve
&lt;a href=&#34;../installing-different-versions-of-r#installing-different-versions-of-r&#34;&gt;installed a new version of R&lt;/a&gt;, to make
sure tools such as R CMD INSTALL are run with the intended R version.&lt;/p&gt;
&lt;h2 id=&#34;switching-a-configurations-r-version&#34;&gt;Switching a Configuration&amp;rsquo;s R Version&lt;/h2&gt;
&lt;p&gt;If you&amp;rsquo;ve installed a &lt;a href=&#34;../installing-different-versions-of-r&#34;&gt;new version of R&lt;/a&gt;,
you can edit your external tool configurations to work on the new R version.
Navigate to the &lt;strong&gt;External Tools Configuration&lt;/strong&gt; window, select the desired
configuration, and change the selected configuration in the &lt;strong&gt;R Config&lt;/strong&gt; tab.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;../img/advanced_exToolsConfig.gif&#34; alt=&#34;&#34;&gt;&lt;/p&gt;
&lt;h2 id=&#34;document-processing&#34;&gt;Document Processing&lt;/h2&gt;
&lt;p&gt;Architect ships with built-in functionality for processing &lt;em&gt;LaTeX&lt;/em&gt;, &lt;em&gt;Sweave&lt;/em&gt; and &lt;em&gt;knitr&lt;/em&gt;
documents. These can be run via the External Tools dropdown menu, and further 
customized and modified in the &lt;strong&gt;External Tools Configurations&lt;/strong&gt; window.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;../img/advanced_externalToolsWindow.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Documentation: Non-Embedded R Graphics View</title>
      <link>/documentation/advanced/non-embedded-r-graphics-view/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/documentation/advanced/non-embedded-r-graphics-view/</guid>
      <description>
        
        
        &lt;p&gt;To use a non-embedded R Graphics view, select from the main menu &lt;strong&gt;Run &amp;gt; Run
Configurations&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;../img/advanced_runConfig.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;
&lt;p&gt;Then select your R Console from the list on the left, navigate to the &lt;strong&gt;R Console&lt;/strong&gt;
tab and scroll to the bottom. Uncheck the box titled &lt;strong&gt;Set R Graphics view by
StatET as default graphic device for new plots in R&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;../img/advanced_embeddedGraphicsView.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Documentation: Eclipse Plugins</title>
      <link>/documentation/advanced/eclipse-plugins/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/documentation/advanced/eclipse-plugins/</guid>
      <description>
        
        
        &lt;h2 id=&#34;eclipse-marketplace&#34;&gt;Eclipse Marketplace&lt;/h2&gt;
&lt;p&gt;Since Architect is embedded in the Eclipse environment, additional Eclipse
plugins can be installed directly in Architect via the &lt;strong&gt;Eclipse Marketplace&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;../img/advanced_marketplace.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;
&lt;p&gt;From the &lt;strong&gt;Eclipse Marketplace&lt;/strong&gt; menu, one can search for available plugins. Here, 
as an example, we
look for a Python editor, and find PyDev, a popular Python IDE for Eclipse.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;../img/advanced_pydev.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;
&lt;p&gt;Click &lt;strong&gt;Install&lt;/strong&gt;, and you&amp;rsquo;ll be presented with a selection of features available for 
installation.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;../img/advanced_pydevInstall.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;
&lt;p&gt;To select all, click &lt;strong&gt;Confirm&lt;/strong&gt;. Next, you&amp;rsquo;ll be prompted to accept the licenses 
associated with the downloaded software. Click &lt;strong&gt;Finish&lt;/strong&gt; to initiate the installation.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;../img/advanced_licenses.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;
&lt;p&gt;Note that software may take some time to install. To hide the installation progress,
click the &lt;strong&gt;Run in Background&lt;/strong&gt; button on the installation window. Note that Architect
may be restarted after installation in order to use the new software.&lt;/p&gt;
&lt;h2 id=&#34;software-from-other-sources&#34;&gt;Software from Other Sources&lt;/h2&gt;
&lt;p&gt;Software add-ons from other sources may also be added via &lt;strong&gt;Help &amp;gt; Install New
Software&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;../img/advanced_newSoftware.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;
&lt;p&gt;Architect ships with a number of predefined sites with software additions available 
to download. Other sources may be configured via the &lt;strong&gt;Add&lt;/strong&gt; button.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;../img/advanced_pydevOther.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Documentation: Using Architect Behind a Proxy Server</title>
      <link>/documentation/advanced/using-architect-behind-a-proxy-server/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/documentation/advanced/using-architect-behind-a-proxy-server/</guid>
      <description>
        
        
        &lt;p&gt;You can configure Architect to run an R Console behind a proxy server. 
Type &lt;strong&gt;Ctrl + 3&lt;/strong&gt; to access the &lt;a href=&#34;../../getting-started/tips-and-tricks#quick-search&#34;&gt;Quick Search&lt;/a&gt;, then search for
&lt;strong&gt;Network Connections&lt;/strong&gt;. Use this window to configure your proxy settings.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;../img/advanced_proxyConfig.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;
&lt;p&gt;Next, we&amp;rsquo;ll configure an R Environment to use these defined proxy settings. Quick Search 
for the &lt;strong&gt;R Environments&lt;/strong&gt; preferences menu, then click the checkbox titled &lt;strong&gt;Use Eclipse
preferences for Network Connections&lt;/strong&gt; for the desired R Environment.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;../img/advanced_proxyEnv.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Documentation: Searching R Help Files</title>
      <link>/documentation/advanced/help-search/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/documentation/advanced/help-search/</guid>
      <description>
        
        
        &lt;p&gt;Architect allows you to search the help files from all installed R packages. To open the R Help 
search view, type &lt;strong&gt;Ctrl + h&lt;/strong&gt;, then click on the &lt;strong&gt;R Help&lt;/strong&gt; tab.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;../img/advanced_rHelp.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;
&lt;p&gt;This is useful for finding packages and functions related to a given topic or keyword. For example, 
we may be interested in finding help pages that relate to &amp;lsquo;geom&amp;rsquo;. A quick search shows that 11 of our installed packages contain help pages related to this query.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;../img/advanced_geom.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;
&lt;p&gt;By clicking on a package, we can see all pages from that package related to our search query. Clicking on a page opens the corresponding &lt;strong&gt;R Help&lt;/strong&gt; page.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;../img/advanced_helpSearch.gif&#34; alt=&#34;&#34;&gt;&lt;/p&gt;
&lt;p&gt;Help pages for base R packages are indexed the first time you run Architect. For
other packages, help pages are automatically index upon package installation. Indexing displays
the following messages in the Console.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;../img/advanced_indexUpdate.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;
&lt;h2 id=&#34;additional-search-features&#34;&gt;Additional Search Features&lt;/h2&gt;
&lt;p&gt;You can specify the scope of your search via the &lt;strong&gt;Search in&lt;/strong&gt; field. Selecting &lt;strong&gt;Complete Document&lt;/strong&gt; may be needed 
for many queries. In our previous example, searching for &amp;ldquo;geom&amp;rdquo; in only selected fields yielded only three packages (and 
only two ggplot2 pages!).&lt;/p&gt;
&lt;p&gt;Although not often utilized by package developers, searches can be done for predefined keywords 
such as &amp;ldquo;htest&amp;rdquo; (hypothesis test). The terms are available by clicking the &lt;strong&gt;Select&amp;hellip;&lt;/strong&gt; button.&lt;/p&gt;
&lt;p&gt;Finally, if you have &lt;a href=&#34;../installing-different-versions-of-r#installing-different-versions-of-r&#34;&gt;installed other versions of R&lt;/a&gt;,
you can pick the R installation to search via the &lt;strong&gt;Selected Configuration&lt;/strong&gt; dropdown menu.&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Documentation: Refactoring R Code</title>
      <link>/documentation/advanced/code-refactoring/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/documentation/advanced/code-refactoring/</guid>
      <description>
        
        
        &lt;p&gt;Architect contains easy-to-use tools to quickly make alterations to your code. 
Below, we display how to use these functionalities.&lt;/p&gt;
&lt;h2 id=&#34;extracting-local-variables&#34;&gt;Extracting Local Variables&lt;/h2&gt;
&lt;p&gt;Suppose we have some expressions that are reused throughout our code. In the example below,
we have repeated instances of the expression:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-r&#34; data-lang=&#34;r&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#000&#34;&gt;profit&lt;/span&gt; &lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;0&lt;/span&gt; &lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&#34;color:#000&#34;&gt;revenue&lt;/span&gt; &lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;50000&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;To clean up our code, we may be interested in assigning this expression to a variable, 
and replacing all instances of said expression by our new variable. We can do this
by highlighting the specified code and selecting &lt;strong&gt;&amp;lsquo;Source &amp;gt;  Extract Local Variable&amp;hellip;&amp;rsquo;&lt;/strong&gt;.
The extraction is shown below.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;../img/advanced_extractLocalVariable.gif&#34; alt=&#34;&#34;&gt;&lt;/p&gt;
&lt;h2 id=&#34;renaming-variables-in-a-selected-region&#34;&gt;Renaming Variables in a Selected Region&lt;/h2&gt;
&lt;p&gt;In the &lt;a href=&#34;../../getting-started/tips-and-tricks#renaming-all-instances-of-a-variable&#34;&gt;Tips and Tricks Section&lt;/a&gt;, 
we showed how to rename all instances of a variable in an &lt;em&gt;entire document&lt;/em&gt;. However, 
often one wishes to rename a variable in just a specific section of the code.&lt;/p&gt;
&lt;p&gt;We can do this by selecting a given section of code and selecting &lt;strong&gt;Source &amp;gt; Rename in Selected Region&amp;hellip;&lt;/strong&gt;. 
This opens a window the displays all variables within the selected region. Navigate to 
a variable and type another name in the &lt;strong&gt;New Name&lt;/strong&gt; column to rename that variable
in the highlighted region.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;../img/advanced_renameInRegion.gif&#34; alt=&#34;&#34;&gt;&lt;/p&gt;
&lt;h2 id=&#34;converting-code-into-a-function&#34;&gt;Converting Code into a Function&lt;/h2&gt;
&lt;p&gt;In Architect, a chunk of code can be transformed into a function with the click of 
a button. Simply highlight the desired code and select &lt;strong&gt;Source &amp;gt; Extract R Function&amp;hellip;&lt;/strong&gt;. 
Architect will automatically detect the function&amp;rsquo;s necessary input parameters, at which point you 
can specify their order in the function call. The code is wrapped into a function, and a function call is 
given underneath the definition.&lt;/p&gt;
&lt;p&gt;In the example below, we wrap some code for a residual plot into a &amp;lsquo;plotResiduals&amp;rsquo; 
function that takes &amp;lsquo;x&amp;rsquo; and &amp;lsquo;y&amp;rsquo; as inputs.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;../img/advanced_extractFunction.gif&#34; alt=&#34;&#34;&gt;&lt;/p&gt;

      </description>
    </item>
    
  </channel>
</rss>
