hsShowPdf | R Documentation |
Opens the PDF file of which the full path is given in Pdf in a PDF viewer.
hsShowPdf(Pdf, dbg = TRUE)
Pdf |
full path to PDF file |
dbg |
if |
preparePdf
# Set path to PDF file and open PDF device
tmpPdf <- tempfile("ex_hsFinishPdf", fileext = ".pdf")
preparePdf(tmpPdf)
# Plot something
plot(x <- seq(-pi,pi,pi/100), sin(x), type = "l")
# Finish PDF file.
grDevices::dev.off()
## Not run:
# Open PDF file in viewer.
hsShowPdf(tmpPdf)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.