On Sun, 26 Jan 2020 at 16:30, Felix Blind <felixbl...@gmail.com> wrote: >
> But when I put the same code in a file script.r and run it with R -f > script.r or if I source it in the REPL with source("script.r") I do not > get any plots shown. > > Can you guys tell me what I do wrong. (Apart from either using RStudio > or the REPL exclusively) Add Sys.sleep(Inf) to the end of your script.r and run it with R --interactive < script.r It works for me. Regards Martin ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.