# NOT RUN {
if(interactive()
# }
# NOT RUN {
) {
ps.do("ex.ps")
data(sunspots)
plot(sunspots)
ps.end()
pdf.latex("ex-sun.pdf")
plot(sunspots)
pdf.end(call. = FALSE) # basically the same as dev.off()
}
ps.latex("ex2.eps")
plot(sunspots)
ps.end(call.gv = FALSE) # basically the same as dev.off()
# }
Run the code above in your browser using DataCamp Workspace