is_tex: Check if the File is a TeX File

View source: R/is_tex.R

is_texR Documentation

Check if the File is a TeX File

Description

This function checks whether the specified file path has a .tex file extension.

Usage

is_tex(path)

Arguments

path

A character string specifying the file path.

Value

A logical value (TRUE or FALSE) indicating whether the file has a .tex extension.

Examples

## Not run: 
is_tex("document.tex")  # Returns TRUE
is_tex("image.png")     # Returns FALSE

## End(Not run)

AndreSjuve/texaid documentation built on Oct. 20, 2024, 6:17 a.m.