Re: [R] Sweave with pdf(): how to remove mention "null device"

2011-01-27 Thread Kevin E. Thorpe
Hi there. Out of curiosity, why are you doing it that way instead of this: <>= plot(runif(100)) @ Kevin On January 27, 2011 05:30:08 am Matthieu Stigler wrote: > great, solved! Thanks a lot for your quick help! > > Le 27. 01. 11 11:22, Prof Brian Ripley a écrit : > > Note that the 'problem' is

Re: [R] Sweave with pdf(): how to remove mention "null device"

2011-01-27 Thread Matthieu Stigler
great, solved! Thanks a lot for your quick help! Le 27. 01. 11 11:22, Prof Brian Ripley a écrit : Note that the 'problem' is with dev.off(), not pdf(), and the answer is ?invisible. pdf() invisible(dev.off()) On Thu, 27 Jan 2011, Matthieu Stigler wrote: Hi I am sorry, my question seems sim

Re: [R] Sweave with pdf(): how to remove mention "null device"

2011-01-27 Thread Prof Brian Ripley
Note that the 'problem' is with dev.off(), not pdf(), and the answer is ?invisible. pdf() invisible(dev.off()) On Thu, 27 Jan 2011, Matthieu Stigler wrote: Hi I am sorry, my question seems simple and must already have been asked, but I did not find any aswser on the archives :-( Searching

[R] Sweave with pdf(): how to remove mention "null device"

2011-01-27 Thread Matthieu Stigler
Hi I am sorry, my question seems simple and must already have been asked, but I did not find any aswser on the archives :-( I am trying to use a plot in Sweave, where I include myself the statement <>= pdf("plot.pdf") plot(runif(100)) dev.off() cat("\\includegraphics{plot}\n\n") @ as is doc