Skip to content

Commit

Permalink
NEWS & DESCRIPTION
Browse files Browse the repository at this point in the history
  • Loading branch information
stla committed Apr 24, 2024
1 parent 17c600b commit ce515b2
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 19 deletions.
44 changes: 30 additions & 14 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,23 +1,39 @@
Package: findInFiles
Type: Package
Package: findInFiles
Title: Find Pattern in Files
Version: 0.4.0.9000
Authors@R: c(
person(
"Stéphane", "Laurent",
role = c("aut", "cre"), email = "laurent_step@outlook.fr"
),
person(
"Rob", "Burns",
role = c("ctb", "cph"), comment = "'ansi-to-html' library"
)
person("Stéphane", "Laurent", , "laurent_step@outlook.fr", role = c("aut", "cre")),
person("Rob", "Burns", role = c("ctb", "cph"),
comment = "'ansi-to-html' library")
)
Description: 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' app. Also provides a 'Shiny' application allowing to run the widget and to navigate in the results.
Description: 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 in the results. Instead of
creating a HTML widget, it is also possible to get the resuts of the
search in a 'tibble'. The search is performed by the 'grep' command-line
utility.
License: GPL-3
Encoding: UTF-8
SystemRequirements: grep
Imports: htmlwidgets, stringr, crayon, vctrs, tibble, stringi, shiny, utils
Suggests: shinyAce, shinyWidgets, shinyjqui, shinyFiles, shinyvalidate, fs
URL: https://github.com/stla/findInFiles
BugReports: https://github.com/stla/findInFiles/issues
Imports:
crayon,
htmlwidgets,
shiny,
stringi,
stringr,
tibble,
utils,
vctrs
Suggests:
fs,
shinyAce,
shinyFiles,
shinyjqui,
shinyvalidate,
shinyWidgets
Encoding: UTF-8
RoxygenNote: 7.3.1
SystemRequirements: grep
24 changes: 22 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
# findInFiles 0.5.0

* The `findInFiles` function has two new arguments `maxCountPerFile` and
`maxCount`. If an integer is supplied to `maxCountPerFile`, then this integer
is passed to the `--max-count` option of the `grep` command and then `grep`
stops to search in a file whenever it has found `maxCountPerFile` results in
this file. If an integer is supplied to `maxCount`, then only the
first `maxCount` results found by `grep` are returned; but `grep` does not
stop to search after it has found `maxCount` results: it internally returns all
the search results, but only the first `maxCount` results are returned to the
user.

* The `findInFiles` function has now an alias function named `fif`.

* Since I most often use the `findInFiles` function to search in R files, I
added the function `fifR` which is the same as `findInFiles` with the `ext`
argument set to `"R"`.


# findInFiles 0.4.0

Now the package provides a Shiny application (`shinyFIF()`) allowing to run
Expand All @@ -6,8 +25,9 @@ Now the package provides a Shiny application (`shinyFIF()`) allowing to run

# findInFiles 0.3.0

* Added the option '--with-filename' to 'grep'. Without this option, the file
name does not appear in the output when there is a unique file in the results.
* Added the option `--with-filename` to the `grep` command. Without this
option, the file name does not appear in the output when there is a unique
file in the results.

* The `output` argument must now be one of `"viewer"` (the default),
`"tibble"`, or `"viewer+tibble"`. These two latter options allow to get the
Expand Down
6 changes: 3 additions & 3 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
## Test environments

* Windows 10, R 4.1.2
* Ubuntu 20, via Github action
* win-builder (devel)
* Windows 10, R 4.3.2
* Github actions
* win-builder devel

## R CMD check results

Expand Down

0 comments on commit ce515b2

Please sign in to comment.