Takes the longest known suffix after the last directory separator,
ignoring case, so .tar.gz is known as a compound and
report.FINAL.PDF is a PDF. Nothing is read from the file.
See also
mime_extensions() for the reverse.
Other registry:
mime_extensions(),
mime_is(),
mime_parent(),
mime_types()
Examples
mime_guess(c("report.FINAL.PDF", "data.tar.gz", "README", "x.rds"))
#> [1] "application/pdf" "application/gzip" NA
#> [4] "application/x-rds"