Finding Files in Project Subdirectories
Overview
Robust, reliable and flexible paths to files below a project root. The 'root' of a project is defined as a directory that matches a certain criterion, e.g., it contains a certain regular file.
Features
is_vscode_projectlooks for.vscode/settings.jsoninstead of just.vscode/(#162, #163).
Documentation
- Use single quotes to avoid nested double quotes (#161).
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-11
- ERROR12 OK, 1 ERROR2026-06-09
- OK14 OK2026-03-18
Show 2 earlier changesHide 2 earlier changes
- ERROR13 OK, 1 ERROR2026-03-17
- OK14 OK2026-03-10
Documentation
- Help pages
- 7 (2 internal)includes a package overview page
- Examples that run
- 40%2 run in a plain check · 3 never run
- Exported functions with examples
- 67%
- Documented parameters
- 93%
- Return-value docs
- 67%
- Help pages citing references
- 14%
Downloads
Repository
- PRs merged (all time)
- 63%
- Median days to close, 50 most recently updated closed issues
- 56
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
Commit identities over time
12 development-tooling and community-health practices detected across 7 families in the upstream repository
Checks run against github.com/r-lib/rprojroot on 2026-10-11.
The R CMD check workflow runs on Linux and Windows
GitHub Pages site last deployed 2026-09-27 · The repository has a site deploy workflow
pkgdown site last built 2026-06-08
Show all practicesHide 3 practices
This repository shows signs of AI coding tools.
- Claude Codefirst seen on or before 2026-05-16Pull request it wrote: opened by a project memberCommits: 1 by its own account · at least 39 crediting it in the message
- Claude CodePull requests: 6 from outside contributors, first on 2026-09-12, 6 from forks
- Claude Opus 513 commits · Aug to Sep 2026
- Claude Opus 5.53 commits · Sep 2026
- Claude Fable 51 commit · Aug 2026
Dependencies
Installing rprojroot adds no packages beyond those that come with R.
Show the 48 most downloaded packagesHide the 48 most downloaded packages
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 2.1.1Latest
- 2.1.0
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 2.0.4
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- 2.0.3
- RR 4.1.0 released · 2021-05-18
- 2.0.22020-11-15 · diff ↗ ·
removed 1 export
has_dirnameadded 4 exports
as_root_criterion, has_basename, is_drake_project, is_root_criterion - RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
- 1.3-22018-01-03 · diff ↗
- 1.3-12017-12-18 · diff ↗ ·
added 5 exports
thisfile, thisfile_knit, thisfile_r, thisfile_rscript, thisfile_source
Show 8 earlier eventsHide 8 earlier events
- RR 3.4.0 released · 2017-04-21
- 1.22017-01-16 · diff ↗ ·
added 6 exports
get_root_desc, has_dir, is_git_root, is_projectile_project, is_svn_root, is_vcs_root - 1.12016-10-29 · diff ↗ ·
added 6 exports
find_remake_root_file, find_testthat_root_file, from_wd, has_dirname, is_remake_project, is_testthat - RR 3.3.0 released · 2016-05-03
- 1.0-22016-03-28 · diff ↗
- 1.0-12016-03-27 · diff ↗
- 1.02016-03-26
- RR 3.2.0 released · 2015-04-16
Package metadata
- First published
- 2016-03-26
- Total releases
- 12 / 10 yrs
- License
- MIT + file LICENSE OSI · relicensed from GPL-3 in 2.0.2
- Minimum R
- ≥ 3.0.0
- Download size
- 58 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("rprojroot")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.
From data release v2026-10-17, which the citation names so these numbers can be found later. More on citing and the projects behind them.