Uwe, I didn't include reproducible code because I don't think it will be reproduced on somebody else's machine. Like I said, I can use the png function with impunity on one machine, but not on the other. So I am assuming it is a computer error, and a very weird one at that. I just posted it here because I am curious why it would behave in such a way, and if anybody knows why, I would like to know. If my problem makes no sense to you, just ignore it. I post using html because that is the only way I know how, that is, I send an email to r-help@r-project.org. And, I did mention in my first post that I was running R 2.13.0. Thanks for taking the time to respond-- Patrick
On Fri, Apr 22, 2011 at 5:17 AM, Uwe Ligges <lig...@statistik.tu-dortmund.de > wrote: > On 21.04.2011 22:32, Patrick McKann wrote: > >> I don't know if anyone is reading this, but I have more information now. >> I >> can run the same script on my other computer over and over, change the >> height, width and res, and it works every time. But on the faulty >> computer, >> I can open R, open the script, and run it and it works. I can re-run it >> any >> number of times and it works. However, when I change the height, width, >> or >> res settings in the function, I get the error message. From that point >> on, >> even if I change the height, width, or res back to what worked before, it >> will no longer run and I get the error message. I can only get it to run >> again by shutting down the program, re-opening R and the script, and >> running >> it again. This is just bizarre to me and I have no idea why I am having >> this problem. Thanks if you are still reading, and I welcome any input. >> I'm not very technically savvy, but I am running it on Windows XP Pro >> Version 2002, Service Pack 3. >> > > > > The following works for me: > > > png("test.png", width=50000, height=50000, res=1000) > Error in png("test.png", width = 50000, height = 50000, res = 1000) : > > unable to start png() device > In addition: Warning messages: > 1: In png("test.png", width = 50000, height = 50000, res = 1000) : > Unable to allocate bitmap > 2: In png("test.png", width = 50000, height = 50000, res = 1000) : > opening device failed > > png("test.png",width=1000, height=1000, res=1200) > > dev.off() > > > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html<http://www.r-project.org/posting-guide.html>and > provide commented, minimal, self-contained, reproducible code. > > - So where is your reproducible example??? > - Assuming you are running R-2.13.0 (also unstated)??? > - Why do you send html mails??? > > Uwe Ligges > > > > > > [[alternative HTML version deleted]] >> >> ______________________________________________ >> 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<http://www.r-project.org/posting-guide.html> >> and provide commented, minimal, self-contained, reproducible code. >> > [[alternative HTML version deleted]] ______________________________________________ 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.