I have created a script that works fine when I run it from Rstudio.
However, when I save it as "Rexec" and try to run it by double clicking, it only partially launches.
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.
I have run another, much bigger script this way and had no problems.
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 select.list
or save file as png via using:
png.filename <- tclvalue(tkgetSaveFile(initialfile = "choose name.png",
filetypes = "{ {PNG Files} {.png} }"))
How can I check what is causing the problem i.e. output an error log?