filename_to_storeid: Create a Store ID from a Test File Name

View source: R/misc.R

filename_to_storeidR Documentation

Create a Store ID from a Test File Name

Description

Create a Store ID from a Test File Name

Usage

filename_to_storeid(x)

Arguments

x

character(1L) file name ending in .r or .R

Value

store id name, or NULL if x doesn't meet expectations

Examples

filename_to_storeid(file.path("tests", "unitizer", "foo.R"))
filename_to_storeid(file.path("tests", "unitizer", "boo.r"))
# does not end in [rR]
filename_to_storeid(file.path("tests", "unitizer", "boo"))

brodieG/unitizer documentation built on Oct. 14, 2023, 6:26 a.m.