The RStudio Find in Files command recursively searches the entire project directory. When using the {renv} package manager in an RStudio project, the project library is in the project directory, so there may be quite a few files to search. This can slow the search considerably and return spurious results from library files.
Is there any way to prevent RStudio from searching the renv library directory?
It seems you can only use regex to specify the search term, but not the folder. One option you could consider is using the terminal window in RStudio and using grep.
grep -iRl "data.frame" --exclude-dir=.Rproj.user
In this case, all files containing the term data.frame will be returned, apart from those in the folder ./.Rproj.user/ (a hidden folder).
It's not perfect, but it might help speed up things.
Trying RStudio Version 1.3.926 on Windows 10, it's not clear what it is doing. It doesn't find items in the renv directory, but the grep task takes a very long time to complete. If I run Find in Files in a non-renv project, the task completes normally.