On Wed, Feb 25, 2009 at 10:58 PM, Ted Harding <ted.hard...@manchester.ac.uk> wrote: > > if(length(grep("linux",R.Version()$os))){ > windows <- function( ... ) X11( ... ) > } >
Try if (.Platform$OS.type == "windows") ... else ... ______________________________________________ R-help@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.