Skip to content

findInFiles

0.5.0Package record

Find Pattern in Files

0packages depend
7.5Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

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.

Changes in 0.5.0
  • Files without base name (such as .gitignore) were excluded from the search.

This is no longer the case.

  • Hidden folders (those whose name starts with a dot) were not excluded from

the search when running a full recursive search (i.e. depth is NULL or a

negative integer). Now they are always excluded.

  • The argument ext of the findInFiles function has been renamed to

extensions and it can be a vector of file extensions now.

  • The arguments excludePattern and excludeFoldersPattern of the

findInFiles function can be some vectors now, to give multiple patterns.

  • The findInFiles function has now an argument includePattern. If a vector

of patterns is supplied to this argument, then only the files whose name matches

one of these patterns are included in the search.

Show all changes in 0.5.0Hide the rest of the changes in 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

extensions argument set to "R".

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 1.3 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.5.0
READMEYes · 89 wordsVignettesNoNEWSYes · 100% structured · mentions 0.5.0Citation fileNoWebsitenot declared in DESCRIPTION
Help pages
5
Examples that run
100%4 run in a plain check
Exported functions with examples
80%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
0%

Downloads

7.5K
CRAN downloads in the past year
Rank #7,374 · ~21/day · ~624/mo
Daily download trend is not available in this view yet.
45330 days
1.2K90 days
7.5K1 year
Compare downloads with other packages →
Also on67 r2u8 autocran

Repository

12Stars
1Forks
1Open issues
0Open PRs
4Releases
81Commits
1Commit identities
rhtmlwidgets
81 commits · Last activity 2024-04-28 · 0% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
0%
Median days to close, 50 most recently updated closed issues
5
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2024-04-24 · 122026-07-07 · 12
PracticesBeta

4 development-tooling and community-health practices detected across 3 families in the upstream repository

Checks run against github.com/stla/findinfiles on 2026-10-11.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

CRAN release process (1)
cran-comments.md
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
13 external dependencies (excludes base and recommended)

Installing findInFiles adds 46 packages (25 with compiled code, 43 MB of source tarballs). Heaviest: stringi 11 MB, bslib 5.6 MB, promises 3.1 MB.

Depends (0)
none
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (2)
Author, Maintainer since 0.1.0 (2020)
Contributor, Copyright holder
'ansi-to-html' library
Releases (7)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 0.5.0Latest
    record
    2024-04-28 · current release · diff ↗ ·
    added 2 exports
    fif, fifR
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • 0.4.0
    record
    2022-04-11 · diff ↗ ·
    added 1 export
    shinyFIF
  • 0.3.0
    record
    2021-08-03 · diff ↗ ·
    added 1 export
    FIF2tibble
  • 0.2.0
    record
    2021-07-23 · diff ↗ ·
    added 1 export
    FIF2dataframe
  • R
    R 4.1.0 released · 2021-05-18
  • 0.1.2
    record
    2020-11-16 · diff ↗
  • 0.1.1
    record
    2020-10-23 · diff ↗
  • 0.1.0
    record
    2020-10-22
  • R
    R 4.0.0 released · 2020-04-24

Package metadata

First published
2020-10-22
Total releases
7 / 6 yrs
License
GPL-3 OSI
Download size
35 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("findInFiles")
Laurent, S., & Burns, R. (2024). findInFiles: Find Pattern in Files (Version 0.5.0) [Computer software]. https://doi.org/10.32614/CRAN.package.findInFiles

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for findInFiles version 0.5.0 [Data set]. HJJB, LLC. Data release v2026-10-18. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy