Checks whether a file is a PDF file.

is_pdf(file)

Arguments

file

a filepath

Value

a boolean

Examples

if (FALSE) { is_pdf("document.pdf") }