Map the file type to a corresponding regular expression
map_filetype_to_pattern(filetype)
The file type to map to a regex.
styler:::map_filetype_to_pattern(c(".rMd", "R"))
Run the code above in your browser using DataLab