Skip to contents

Check to see if a file is an excel file

Usage

is_excel(file_name)

Arguments

file_name

Name of file to check.

Value

Logical indicating if a file is an excel file or not.

Examples

is_excel("file.xls")
#> [1] TRUE
is_excel("file.xlsx")
#> [1] TRUE
is_excel("file.csv")
#> [1] FALSE