Skip to content
Prev 360735 / 398502 Next

month and output

today <- Sys.Date()
nextmo<- paste0( month.abb[ as.numeric(format(today, format="%m"))+1] ,
                 format(today,"%Y") )
[1] "Jun2016"
pdf() opens a graphics device, so you need a function that establishes a coordinate system:

x5 <- runif(15, 5.0, 7.5)
pdf(file=" test.pdf"); 
plot(1,1,type="n")
text(1, 1, paste(round(x5, 2), collapse="\n") )
dev.off()

I doubt that this is what you really want, and suspect you really need to be studying the capabilities supported by the knitr package. If I'm wrong about that and you want a system that supports drawing and text on a blank page, then first study:
If you choose that route then the text "R Graphics" by Paul Murrell will be indispensable.