Checks whether a file is a PDF file.

is_pdf(file)

Arguments

file

a filepath

Value

a boolean

Examples

if (FALSE) { # \dontrun{
is_pdf("document.pdf")
} # }