Changelog
Source:NEWS.md
rprojroot 2.0.4.9010 (2024-12-09)
Continuous integration
- Avoid failure in fledge workflow if no changes (#144).
rprojroot 2.0.4.9009 (2024-12-08)
Continuous integration
- Fetch tags for fledge workflow to avoid unnecessary NEWS entries (#142).
rprojroot 2.0.4.9008 (2024-12-07)
Features
- Avoid warnings about invalid inputs with non-native encoding (@bastistician, #80).
Chore
- Enable auto-styling (#82).
Continuous integration
Use larger retry count for lock-threads workflow (#140).
Ignore errors when removing pkg-config on macOS (#130).
Explicit permissions (#128).
Use styler from main branch (#126).
Need to install R on Ubuntu 24.04 (#124).
Use Ubuntu 24.04 and styler PR (#122).
Correctly detect branch protection (#117).
Use stable pak (#116).
Trigger run (#115).
Use pkgdown branch (#109).
Documentation
- Switch to
index.md
(#113).
Uncategorized
- PLACEHOLDER https://github.com/r-lib/rprojroot/pull/16 (#16).
rprojroot 2.0.4.9007 (2024-09-15)
Continuous integration
-
Install via R CMD INSTALL ., not pak (#107).
ci: Install via R CMD INSTALL ., not pak
ci: Bump version of upload-artifact action
rprojroot 2.0.4.9006 (2024-08-31)
Chore
-
Auto-update from GitHub Actions.
Run: https://github.com/r-lib/rprojroot/actions/runs/10425483146
-
Auto-update from GitHub Actions.
Run: https://github.com/r-lib/rprojroot/actions/runs/10208520735
-
Auto-update from GitHub Actions.
Run: https://github.com/r-lib/rprojroot/actions/runs/9728439643
-
Auto-update from GitHub Actions.
Run: https://github.com/r-lib/rprojroot/actions/runs/9691616135
Continuous integration
Install local package for pkgdown builds.
Improve support for protected branches with fledge.
Improve support for protected branches, without fledge.
Sync with latest developments.
Use v2 instead of master.
Inline action.
Use dev roxygen2 and decor.
Fix on Windows, tweak lock workflow.
Avoid checking bashisms on Windows.
Better commit message.
Bump versions, better default, consume custom matrix.
Recent updates.
rprojroot 2.0.4.9004 (2024-01-16)
Documentation
- Clarify
subdir
argument (#103).
rprojroot 2.0.4.9003 (2024-01-15)
Chore
Rename
is_root()
tois_fs_root()
to avoid confusion (#101).Add Aviator configuration.
rprojroot 2.0.4.9001 (2023-11-20)
Bug fixes
- Fix example for
find_root()
(@salim-b, #98).
Testing
- Replace mockr with
testthat::local_mocked_bindings()
(@salim-b, #97).
rprojroot 2.0.4 (2023-11-05)
CRAN release: 2023-11-05
Features
- Add
is_renv_project
criterion looking for anrenv.lock
file (@gadenbuie, #86). - Add
is_quarto_project
criterion looking for a Quarto project (@olivroy, #91, #92).
Testing
- Wrap
::
to skip if not installed in tests (#94).
rprojroot 2.0.2 (2020-11-15)
CRAN release: 2020-11-15
Features
- In
find_root_file()
, if the first path component is already an absolute path, the path is returned unchanged without referring to the root. This allows using both root-relative and absolute paths inhere::here()
. Mixing root-relative and absolute paths in the same call returns an error (#59). -
find_root_file()
propagatesNA
values in path components. Using tidyverse recycling rules for path components of length different from one (#66). -
has_file()
andhas_file_pattern()
gainfixed
argument (#75). - New
is_drake_project
criterion (#34). - Add
subdir
argument tomake_fix_file()
(#33, @BarkleyBG). - Update documentation for version control criteria (#35, @uribo).
Breaking changes
-
has_file()
andhas_dir()
now throw an error if thefilepath
argument is an absolute path (#74). -
has_basename()
replaceshas_dirname()
to avoid confusion (#63). -
as_root_criterion()
andis_root_criterion()
replaceas.
andis.
, respectively. The latter are soft-deprecated. -
thisfile()
and related functions are soft-deprecated, now available in the whereami package (#43).
Bug fixes
- The
is_dirname()
criterion no longer considers sibling directories (#44).
rprojroot 1.3-2 (2017-12-22)
CRAN release: 2018-01-03
- Availability of suggested packages knitr and rmarkdown, and pandoc, is now checked before running the corresponding tests.
rprojroot 1.3-1 (2017-12-18)
CRAN release: 2017-12-18
- Adapt to testthat 2.0.0.
- New
thisfile()
, moved from kimisc (#8). - Add more examples to vignette (#26, @BarkleyBG).
- Detect
.git
directories created withgit clone --separate-git-dir=...
(#24, @karldw).
rprojroot 1.2 (2017-01-15)
CRAN release: 2017-01-16
- New root criteria
- New function
-
get_root_desc()
returns the description of the criterion that applies to a given root, useful for composite criteria created with|
.
-
- Minor enhancements
- Improve formatting of alternative criteria (#18).
- If root cannot be found, the start path is shown in the error message.
- Internal
- The
$testfun
member of therprojroot
S3 class is now a list of functions instead of a function.
- The
rprojroot 1.1 (2016-10-29)
CRAN release: 2016-10-29
- Compatibility
- Compatible with R >= 3.0.0 with the help of the
backports
package.
- Compatible with R >= 3.0.0 with the help of the
- New root criteria
-
is_remake_project
andfind_remake_root_file()
look for remake project (#17). -
is_testthat
andfind_testthat_root_file()
that looks fortests/testthat
root (#14). -
from_wd
, useful for creating accessors to a known path (#11).
-
- Minor enhancement
- Criteria can be combined with the
|
operator (#15).
- Criteria can be combined with the
- Documentation
- Testing
- Use Travis instead of wercker. Travis tests three R versions, and OS X.
- Improve AppVeyor testing.
rprojroot 1.0 (2016-03-26)
CRAN release: 2016-03-26
Initial CRAN release.
- S3 class
root_criterion
:- Member functions:
find_file()
andmake_fix_file()
root_criterion()
as.root_criterion()
is.root_criterion()
has_file()
has_file_pattern()
- Built-in criteria:
is_r_package
is_rstudio_project
- Member functions:
- Getting started:
- Use a custom notion of a project root:
- Vignette