handle_file_name: Constructs fully qualified file name

View source: R/save_tex_value.R

handle_file_nameR Documentation

Constructs fully qualified file name

Description

hanle_file_name checks the extension of file_name, breaks if it is not a '.tex' extension and adds '.tex' extension if no extension exists. If path is not NULL combines path and file_name.

Usage

handle_file_name(file_name, path = NULL)

Arguments

file_name

File name to create on disk. file_name should have either a .tex extension or no extension at all.

path

Path to the directory to save the file to. path and file_name are combined to create fully qualified file name. If Null and file_name does not specify a full file name defaults to working directory.

Value

a complete file name (with path and extension)


Ori-Shoham/savetolyx documentation built on Oct. 29, 2022, 3:42 a.m.