hsShowPdf: Open PDF file in PDF viewer

View source: R/pdf.R

hsShowPdfR Documentation

Open PDF file in PDF viewer

Description

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

Usage

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

preparePdf

Examples

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


KWB-R/kwb.utils documentation built on April 1, 2024, 7:12 a.m.