Skip to content

Commit 95cfc96

Browse files
tjmahrjennybc
andauthored
add note to use_readme_rmd() docs (r-lib#1620)
* add note to use_readme_rmd docs * Work on wording Co-authored-by: Jenny Bryan <jenny.f.bryan@gmail.com>
1 parent 902925e commit 95cfc96

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

R/readme.R

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#' Create README files
22
#'
33
#' @description
4-
#' Creates skeleton README files with sections for
5-
#' * a high-level description of the package and its goals
4+
#' Creates skeleton README files with possible stubs for
5+
#' * a high-level description of the project/package and its goals
66
#' * R code to install from GitHub, if GitHub usage detected
77
#' * a basic example
88
#'
@@ -17,6 +17,13 @@
1717
#' An example workflow can be found in the `examples/` directory here:
1818
#' <https://github.com/r-lib/actions/>.
1919
#'
20+
#' If the current project is a Git repo, then `use_readme_rmd()` automatically
21+
#' configures a pre-commit hook that helps keep `README.Rmd` and `README.md`,
22+
#' synchronized. The hook creates friction if you try to commit when
23+
#' `README.Rmd` has been edited more recently than `README.md`. If this hook
24+
#' causes more problems than it solves for you, it is implemented in
25+
#' `.git/hooks/pre-commit`, which you can modify or even delete.
26+
#'
2027
#' @inheritParams use_template
2128
#' @seealso The [important files
2229
#' section](https://r-pkgs.org/release.html#important-files) of [R

man/use_readme_rmd.Rd

Lines changed: 9 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)