Opens the PDF file of which the full path is given in Pdf in a PDF viewer.

hsShowPdf(Pdf, dbg = TRUE)

Arguments

Pdf

full path to PDF file

dbg

if TRUE (default) the command used to open the PDF file is shown

See also

Examples

# 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) # }