Find specific words across files in R

Hi all,

In my R shiny application directory, I have many files, (R and python files). If I need to search any specific word, I go to specific file and find (Ctrl +F). This only searches the word in that file.

But is there a way to find word in any of the files in my directory?

Regards
Vinay

I think the first paragraph in the link below will help

It depends on your version of RStudio I guess

Thanks

You may use xfun::gsub_file function

Example: https://gist.github.com/sbalci/48d5eb35de6bbb36de34cef60c42151c

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

Great and really helpful