[R] how to dev.off() all devices

baptiste auguie baptiste.auguie at googlemail.com
Thu Mar 15 08:44:51 CET 2012


Hi,

Try this,
replicate(sample(10,1), dev.new())
graphics.off()

HTH,

baptiste

On 15 March 2012 20:36, Alaios <alaios at yahoo.com> wrote:
> Dear all,
> I would like at the beginning of my code to turn off all the remaining open devices.
>
> How can I do that by using dev.off()?
>
> I would like to thank you in advance for your help
>
> B.R
> Alex
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> 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.



More information about the R-help mailing list