Set of R functions to look for search terms in files