Skip to content

Commit ea9e763

Browse files
author
Kirill Müller
committed
Merge branch 'release/1.0' into production
2 parents 48d52fd + f3481df commit ea9e763

40 files changed

+60
-787
lines changed

.Rbuildignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22
^\.Rproj\.user$
33
^\.gitignore$
44
^README\.md$
5-
^NEWS\.md$
6-
^NEWS\.md\.tmpl$
75
^Makefile$
86
^Makefile\.in$
97
^makeR
108
^wercker\.yml$
119
^readme$
1210
^appveyor\.yml$
1311
^makeR$
12+
^cran-comments\.md$

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
inst/doc
55
/inst/web
66
/vignettes/*.html
7+
/man

DESCRIPTION

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: rprojroot
22
Title: Finding Files in Project Subdirectories
3-
Version: 0.2
3+
Version: 1.0
44
Authors@R: person(given = "Kirill", family = "Müller", role = c("aut",
55
"cre"), email = "krlmlr+r@mailbox.org")
66
Description: Robust, reliable and flexible paths to files below a
@@ -29,3 +29,4 @@ Collate:
2929
'has-file.R'
3030
'root.R'
3131
'shortcut.R'
32+
'zzz-autoroxy.R'

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ export(is.root_criterion)
1818
export(is_r_package)
1919
export(is_rstudio_project)
2020
export(root_criterion)
21+
importFrom(utils,str)

NEWS.md

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,24 @@
1-
# rprojroot 0.2 (2016-03-24)
1+
# rprojroot 1.0 (2016-03-24)
22

3-
- Add TL;DR section to vignette.
4-
- Root criteria now have two function members, `find_file()` and `make_fix_file()`, instead of the now removed `make_find_root_file()` and `make_fix_root_file()`.
5-
6-
7-
Version 0.1 (2016-02-03)
8-
===
9-
10-
Initial GitHub release.
11-
12-
- Getting started:
13-
- `find_package_root_file()`
14-
- `find_rstudio_root_file()`
3+
Initial CRAN release.
154

165
- S3 class `root_criterion`:
6+
- Member functions: `find_file()` and `make_fix_file()`
177
- `root_criterion()`
188
- `as.root_criterion()`
199
- `is.root_criterion()`
2010
- `has_file()`
2111
- `has_file_pattern()`
22-
- `criteria`
12+
- Built-in criteria:
2313
- `is_r_package`
2414
- `is_rstudio_project`
2515

16+
- Getting started:
17+
- `find_package_root_file()`
18+
- `find_rstudio_root_file()`
19+
2620
- Use a custom notion of a project root:
2721
- `find_root()`
2822
- `find_root_file()`
29-
- `make_find_root_file()`
30-
- `make_fix_root_file()`
23+
24+
- Vignette

NEWS.md.tmpl

Lines changed: 0 additions & 3 deletions
This file was deleted.

R/has-file.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ criteria <- structure(
8585
class = "root_criteria")
8686

8787
#' @export
88+
#' @importFrom utils str
8889
str.root_criteria <- function(object, ...) {
8990
str(lapply(object, format))
9091
}

R/zzz-autoroxy.R

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# nolint start
2+
{
3+
if (!"DESCRIPTION" %in% dir()) {
4+
return(invisible(NULL))
5+
}
6+
if (file.exists("man")) {
7+
return(invisible(NULL))
8+
}
9+
if (grepl("/.*[.]Rcheck/00_pkg_src/.*$", normalizePath(getwd(),
10+
winslash = "/"))) {
11+
stop("Cannot run this function in R CMD check.")
12+
}
13+
message("*** autoroxy: creating documentation")
14+
if (!requireNamespace("roxygen2")) {
15+
warning("Cannot load roxygen2. Package documentation will be unavailable.",
16+
call. = FALSE)
17+
return(invisible(NULL))
18+
}
19+
roxygen2::roxygenize(roclets = c("rd"))
20+
}
21+
# nolint end

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!-- README.md is generated from README.Rmd. Please edit that file -->
2-
[rprojroot](https://krlmlr.github.io/rprojroot) [![wercker status](https://app.wercker.com/status/c4dfa136cd78514514e259cc388e880c/s/master "wercker status")](https://app.wercker.com/project/bykey/c4dfa136cd78514514e259cc388e880c) [![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/krlmlr/rprojroot?branch=master)](https://ci.appveyor.com/project/krlmlr/rprojroot) [![codecov.io](https://codecov.io/github/krlmlr/rprojroot/coverage.svg?branch=master)](https://codecov.io/github/krlmlr/rprojroot?branch=master) [![CRAN\_Status\_Badge](http://www.r-pkg.org/badges/version/rprojroot)](https://cran.r-project.org/package=rprojroot)
3-
=============================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================
2+
[rprojroot](https://krlmlr.github.io/rprojroot) [![wercker status](https://app.wercker.com/status/c4dfa136cd78514514e259cc388e880c/s/master "wercker status")](https://app.wercker.com/project/bykey/c4dfa136cd78514514e259cc388e880c) [![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/krlmlr/rprojroot?branch=master&type=svg)](https://ci.appveyor.com/project/krlmlr/rprojroot) [![codecov.io](https://codecov.io/github/krlmlr/rprojroot/coverage.svg?branch=master)](https://codecov.io/github/krlmlr/rprojroot?branch=master) [![CRAN\_Status\_Badge](http://www.r-pkg.org/badges/version/rprojroot)](https://cran.r-project.org/package=rprojroot)
3+
======================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================
44

55
This package helps accessing files relative to a *project root* to [stop the working directory insanity](https://gist.github.com/jennybc/362f52446fe1ebc4c49f).
66

@@ -19,11 +19,10 @@ How do we access the package root? In a robust fashion? Easily:
1919
``` r
2020
dir(rprojroot::find_root("DESCRIPTION"))
2121
#> [1] "appveyor.yml" "DESCRIPTION" "inst"
22-
#> [4] "Makefile" "makeR" "man"
23-
#> [7] "NAMESPACE" "NEWS.md" "NEWS.md.tmpl"
24-
#> [10] "R" "readme" "README.md"
25-
#> [13] "rprojroot.Rproj" "tests" "vignettes"
26-
#> [16] "wercker.yml"
22+
#> [4] "Makefile" "NAMESPACE" "NEWS.md"
23+
#> [7] "NEWS.md.tmpl" "R" "readme"
24+
#> [10] "README.md" "rprojroot.Rproj" "tests"
25+
#> [13] "vignettes" "wercker.yml"
2726
```
2827

2928
Installation and further reading

cran-comments.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
## Test environments
2+
* local Ubuntu install, R 3.2.4
3+
* ubuntu 12.04 (on travis-ci), R 3.2.4
4+
* win-builder (devel and release)
5+
6+
## R CMD check results
7+
8+
0 errors | 0 warnings | 1 note
9+
10+
* This is a new release.
11+
12+
## Reverse dependencies
13+
14+
This is a new release, so there are no reverse dependencies.

0 commit comments

Comments
 (0)