In R2.7.1, the first line of the body of png() reads: checkIntFormat(filename) This should really be: if (!checkIntFormat(file)) stop("invalid 'file'") Otherwise a command such as png("foo%s.png") causes R to crash (see bug #10571). ----- Regards, Richie. Mathematical Sciences Unit HSL -- View this message in context: http://www.nabble.com/Filename-bug-in-png-tp18256526p18256526.html Sent from the R devel mailing list archive at Nabble.com.