powered by
Check all files (also in subdirectories) matching the given pattern for tabs. Will throw an error with a list of files where tabs were found if any.
checkNoTabs(pattern, exclude = NULL, excludeFolders = NULL)
Invisibly, the list of files that were checked.
A regular expression. Only files matching this pattern will be checked for tabs.
A regular expression. Files matching this pattern will never be checked.
Paths to folders that should not be checked.
Pascal Sauer
if (FALSE) { gms::checkNoTabs(pattern = "\\.(R|Rprofile|gms|cfg|bib)$", excludeFolders = c("output", "renv", ".git")) gms::checkNoTabs(utils::glob2rx("*.R")) }
Run the code above in your browser using DataLab