Re: [R] problem with graphic devices

From: Erik Iverson <>
Date: Wed, 23 Jun 2010 22:42:00 -0500

> Question:
> After using graphic devices, such as pdf(), png().... in R, nothing happened.
> Screen Log:
> --------------------------

>> pdf("foo.pdf")
>> plot(1:10)

> null device
> 1
I'm guessing foo.pdf was created on your file system, in whatever directory
getwd() returns.

> --------------------------
> There should automatically pop-up a screen and shows the chart, but nothing happened by using above code on my machine.
> Do I misunderstanding anything???
> I have tried the code under WINDOWS and LINUX and got the same result.

 > plot(1:10)

is probably all you need to do. Why are you trying to create a pdf file? mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Thu 24 Jun 2010 - 03:43:46 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 24 Jun 2010 - 05:20:34 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive