R executable not working, but script works fine
<p>I have created a script that works fine when I run it from Rstudio. </p>

<p>However, when I save it as "Rexec" and try to run it by double clicking, it only partially launches. </p>

<p>I get a navigate gui pop-up to the initial file location, but then nothing happens after that. The black box with various messages displays some quickfire messages and closes before i can see what happened.</p>

<p>I have run another, much bigger script this way and had no problems. </p>

<p>This script is distinct in that when I run it through RStudio, there are multiple interactive gui dialog pop-ups that require some input from me i.e. choose column headers with <code>select.list</code> or save file as png via using:</p>

<pre><code>png.filename &lt;- tclvalue(tkgetSaveFile(initialfile = "choose name.png",
                                       filetypes = "{ {PNG Files} {.png} }"))
</code></pre>

<p>How can I check what is causing the problem i.e. output an error log?</p>