Diga ao R para produzir uma saída em PDF

pdf(file = opt$outfile, width = opt$width, height = opt$height, onefile=TRUE, family='Helvetica', paper='letter', pointsize=12)