[R] [FORGED] Re: Executing an R script and show the plots.

Felix Blind |e||xb||nd @end|ng |rom gm@||@com
Mon Jan 27 10:16:53 CET 2020

Thanks  a lot you guys,

you all were right; I used most of your suggestions as part of the solution.
It is a considerable effort to get persistent plots when running an R
The problem is even when I open an interface with X11() it closes
immediately afterwards, when the script is done executing.

My workaround now is:
g <- ggplot(...)
invisible(readLines("stdin", n=1))

But frankly I do not think that is feasible for a steady development

As to the suggestions to use Rstudio. I tried it before in university. I
did not like it, too much mouse, too crowded interface. Actually the
difficulty to just use scripts in R was one big reason that I now write
python code. (But that now borders on a discussion post, and that is not
my intention)

Kind regards,

On 1/26/20 10:22 PM, Rolf Turner wrote:
> On 27/01/20 9:47 am, Sorkin, John wrote:
>> Felix, I suggest you consider using an IDE such as RStudio as you
>> develop and run R code. An integrated development environment will
>> allow you to concentrate on learning R rather on the mechanics of
>> running R in a non-standard environment.
> I disagree.  Or rather, I would say that this is a matter of personal
> taste.  And personally I find that RStudio and its like just present
> another "learning curve" to climb.  I would much rather just write R
> code and get on with it.
> I have never liked GUIs:
>> GUIs normally make it simple to accomplish simple actions and
>> impossible to accomplish complex actions.
>>         --- Doug Gwyn
>>             (22/Jun/91 in `comp.unix.wizards')
> But as I say it's a matter of taste and inclination.  It is likely
> that Felix is among the overwhelming majority of users who prefer GUIs.
> cheers,
> Rolf Turner

More information about the R-help mailing list