check_file_name: Checks a file name for naming standards using the criteria...

View source: R/check_file_name.R

check_file_nameR Documentation

Checks a file name for naming standards using the criteria laid out by the Consultancy Support Team

Description

check_file_name checks whether a file name meets standard file-naming conventions acceptable by various drug regulatory agencies. A warning message will be given for any unacceptable formats.

Usage

check_file_name(file_name)

Arguments

file_name

the name(s) of the file(s) to check. This can be a single string, e.g., file_name = "xlsx" to match all files in the current working directory with that string of text in their names or it can be a character vector of one or more files that you want to check.

Value

a character vector

Examples

# Good file name will give a message that things were ok.
check_file_name(file_name = "abc-5mg-qd.xlsx")

# Bad file names will tell you what went wrong.
check_file_name(file_name = "Example simulator output MD.xlsx")
check_file_name(file_name = "abc_123_5mg.wksz")


shirewoman2/Consultancy documentation built on Feb. 18, 2025, 10 p.m.