I have an executable R
file. All of the code works as expected, except for the function winDialog()
, which works through RStudio
, but not when the file is run through double clicking.
The code in question is as follows:
winDialog("ok", paste0("The checks have been completed in ", round(as.numeric(time.taken), digits = 2), " minutes."))
time.taken
exists as a variable, so that is not the problem.
Is there a different function that would work?
Edit: My question is similar to this one: gWidgets GUI cannot display when called with R CMD BATCH Also similar to this one: https://thesquareplanet.com/blog/interactive-r-scripts/ Still not sure how to implement.
The difference is, I would like to know how I can set the Rexec
file to automatically run interactively, instead of running it from the command line with an extra argument every time?