Opens the PDF file of which the full path is given in Pdf in a PDF viewer.
hsShowPdf(Pdf, dbg = TRUE)
full path to PDF file |
|
dbg | if |
# Set path to PDF file and open PDF device tmpPdf <- tempfile("ex_hsFinishPdf", fileext = ".pdf") hsPrepPdf(tmpPdf)#> Warning: The function hsPrepPdf() is deprecated. Please use preparePdf() instead.#> [1] "/tmp/RtmpMsuQJ9/ex_hsFinishPdf3768878469f15.pdf"# Plot something plot(x <- seq(-pi,pi,pi/100), sin(x), type = "l") # Finish PDF file. grDevices::dev.off()#> RStudioGD #> 2# NOT RUN { # Open PDF file in viewer. hsShowPdf(tmpPdf) # }