Releases: r-lib/rprojroot
Releases · r-lib/rprojroot
rprojroot 2.1.1
rprojroot 2.0.4
rprojroot 2.0.3
rprojroot 2.0.2
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()propagatesNAvalues in path components. Using tidyverse recycling rules for path components of length different from one (#66).has_file()andhas_file_pattern()gainfixedargument (#75).- New
is_drake_projectcriterion (#34). - Add
subdirargument tomake_fix_file()(#33, @BarkleyBG). - Update documentation for version control criteria (#35, @uribo).
Breaking changes
has_file()andhas_dir()now throw an error if thefilepathargument 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).
Internal
rprojroot 1.3-2
- Availability of suggested packages knitr and rmarkdown, and pandoc, is now checked before running the corresponding tests.
rprojroot 1.3-1
- Adapt to testthat 2.0.0.
- New
thisfile(), moved from kimisc (#8). - Add more examples to vignette (#26, @BarkleyBG).
- Detect
.gitdirectories created withgit clone --separate-git-dir=...(#24, @karldw).
v1.2
- 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
$testfunmember of therprojrootS3 class is now a list of functions instead of a function.
- The
v1.1
- Compatibility
- Compatible with R >= 3.0.0 with the help of the
backportspackage.
- Compatible with R >= 3.0.0 with the help of the
- New root criteria
- 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.
v1.0-2
v1.0-1
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_packageis_rstudio_project
- Member functions:
- Getting started:
find_package_root_file()find_rstudio_root_file()
- Use a custom notion of a project root:
find_root()find_root_file()
- Vignette