<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Gui on The Final Artefact</title><link>https://www.thefinalartefact.xyz/tags/gui/</link><description>Recent content in Gui on The Final Artefact</description><generator>Hugo</generator><language>en-gb</language><lastBuildDate>Wed, 01 Feb 2012 00:00:00 +0000</lastBuildDate><atom:link href="https://www.thefinalartefact.xyz/tags/gui/index.xml" rel="self" type="application/rss+xml"/><item><title>Amusing way to get user input windows in R</title><link>https://www.thefinalartefact.xyz/post/amusing-way-to-get-user-input-windows-in-r/</link><pubDate>Wed, 01 Feb 2012 00:00:00 +0000</pubDate><guid>https://www.thefinalartefact.xyz/post/amusing-way-to-get-user-input-windows-in-r/</guid><description>&lt;p&gt;In an unlikely scenario that beautiful &lt;a href="http://shiny.rstudio.com/" target="_blank" rel="noopener"&gt;Shiny &lt;/a&gt;apps do not meet your analytical requirements and developing a full-blown user interface. in &lt;a href="http://www.ggobi.org/rgtk2/"&gt;RGtk2&lt;/a&gt; may seem to be a little too much, there is a third, often overlooked solution, - package &lt;a href="https://cran.r-project.org/web/packages/svDialogs/index.html"&gt;svDialogs&lt;/a&gt; by Philippe Grosjean. The package in a convenient way enables user to create various interface gadgets. For example the code:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;span class="lnt"&gt;2
&lt;/span&gt;&lt;span class="lnt"&gt;3
&lt;/span&gt;&lt;span class="lnt"&gt;4
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-r" data-lang="r"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nf"&gt;require&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;svDialogs&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;## Let&amp;#39;s keep some data in one place&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;user_figure&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;-&lt;/span&gt; &lt;span class="n"&gt;svDialogs&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;dlg_input&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;would result in the following window being presented to the user:&lt;/p&gt;</description></item></channel></rss>