Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Match depends correctly #1463
This change ensures that only exact matches in imports will get ignored. Currently adding e.g.
The proposed change adds regex "fences" around the name of the package to import to circumvent this...
The proper way to do this is to use word boundary anchors around the package name.
re <- "\\btest\\b" grepl(re, "test") #>  TRUE grepl(re, "ttest") #>  FALSE grepl(re, "testt") #>  FALSE grepl(re, " test") #>  TRUE grepl(re, " test ") #>  TRUE grepl(re, " test, ") #>  TRUE