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

2020-02-02 Thread Felix Blind
Thanks all for your solutions. I like the setup best where I startup an xserver connection and then halting the script with readlines. I want to write and run small scripts and that seems to me the nearest to a leightweight solution to the problem in R. Kind regards, Felix On 1/30/20 7:15 AM, Ab

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

2020-01-29 Thread Abby Spurdle
> .prompt = function (pkg, fun) > { fbody = character (1) And I've already noticed a bug. This isn't going too well... __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the

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

2020-01-29 Thread Abby Spurdle
> I am using Linux and device X11 worked for me in the past. I will check > your script later and tell you if it works. The previous script isn't very good. I've improved it. The new version has been tested on Linux and Windows, and with lattice and ggplot2. I note that the script is more complex

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

2020-01-29 Thread Martin Møller Skarbiniks Pedersen
On Tue, 28 Jan 2020 at 13:03, Felix Blind wrote: > > I am using Linux and device X11 worked for me in the past. I will check > your script later and tell you if it works. [...] I am using R version 3.6.2 on ubuntu 18.04.3 LTS and the X11-device when I make plot in the terminal works without prob

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

2020-01-28 Thread Felix Blind
Thanks Abby, I am using Linux and device X11 worked for me in the past. I will check your script later and tell you if it works. On 1/28/20 1:27 AM, Abby Spurdle wrote: > Here's a solution for Windows, for use with graphics::plot. > Using, Linux and grid or ggplot2, may require some modification.

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

2020-01-27 Thread Abby Spurdle
Here's a solution for Windows, for use with graphics::plot. Using, Linux and grid or ggplot2, may require some modification. (However, I assuming the modifications would be easy to make). You can create a file, say quasi_interactive.r quasi_interactive.r #for use with windows only options

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

2020-01-27 Thread Abby Spurdle
It is possible to produce interactive-style plots, while running scripts from the terminal. (Or at least, it was, because I've done before). Can I verify, ***which OS*** are you using...??? I'm offsite now. If you're using Windows or Linux, I can check later. (If no one else posts the answer, tha

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

2020-01-27 Thread Felix Blind
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 script. The problem is even when I open an interface with X11() it closes immediately afterwards, when the script is done execu

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

2020-01-26 Thread Rolf Turner
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.