Find Pattern in Files

Creates a HTML widget which displays the results of searching for a pattern in files in a given folder. The results can be viewed in the 'RStudio' viewer pane, included in a 'R Markdown' document or in a 'Shiny' application. Also provides a 'Shiny' application allowing to run this widget and to navigate in the files found by the search. Instead of creating a HTML widget, it is also possible to get the results of the search in a 'tibble'. The search is performed by the 'grep' command-line utility.


findInFiles

R-CMD-check


This package allows to search a pattern in some files with a given extension from a given root folder and to display the results in a HTML widget or to get them in a tibble.

When the results are returned in a tibble, the pattern appears in color:

As of version 0.4.0, a Shiny app is provided, allowing not only to perform a search but also to navigate in the files found by the search:

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("findInFiles")

0.5.0 by Stéphane Laurent, 2 years ago


https://github.com/stla/findInFiles


Report a bug at https://github.com/stla/findInFiles/issues


Browse source code at https://github.com/cran/findInFiles


Authors: Stéphane Laurent [aut, cre] , Rob Burns [ctb, cph] ('ansi-to-html' library)


Documentation:   PDF Manual  


GPL-3 license


Imports crayon, htmlwidgets, shiny, stringi, stringr, tibble, utils, vctrs

Suggests fs, shinyAce, shinyFiles, shinyjqui, shinyvalidate, shinyWidgets

System requirements: grep


See at CRAN