unitizer (version 1.4.3)

filename_to_storeid: 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

Run this code
# NOT RUN {
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"))
# }

Run the code above in your browser using DataCamp Workspace