Skip to content
Prev 326192 / 398502 Next

Empty pdf

Dear all,

I am comparing "R CMD BATCH script.R" with running the following code 
snippet within R:

pdf("Rplots.pdf")
source("script.R")
dev.off()
q(save="no")

Among other things, one difference is that the former produces no 
Rplots.pdf while the latter produces an empty Rplots.pdf, if script.R 
does not contain "plotting" commands (R version 3.0.1, i486-pc-linux-gnu 
(32-bit)). What is the difference between the two with respect to pdf 
plotting?

Best regards
Adrian