Skip to content

Commit

Permalink
update readme guidance around readme editing
Browse files Browse the repository at this point in the history
  • Loading branch information
cjrace committed Feb 10, 2024
1 parent 0d55e6a commit 2e3f70e
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
14 changes: 13 additions & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ Handy keyboard shortcuts for the `devtools` package to use while in RStudio:

We recommend using the [usethis](https://usethis.r-lib.org/index.html) package where possible for consistency and simplicity.

#### Adding package dependencies

Add any packages the package users will need with:
``` r
usethis::use_package(pkgname, type = "imports")
Expand All @@ -101,7 +103,17 @@ Add any packages that package developers only may need with:
usethis::use_package(pkgname, type = "suggests")
```

### Updating the package version
#### Updating the README

There are two README files that are linked with a pre-commit-hook to ensure are kept in sync.

Make all changes to the `README.Rmd` file and then run the following line to rebuild:

``` r
devtools::build_readme()
```

#### Updating the package version

Once changes have been completed, reviewed and are ready for use in the wild, you can increment the package version using:
``` r
Expand Down
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ package
We recommend using the [usethis](https://usethis.r-lib.org/index.html)
package where possible for consistency and simplicity.

#### Adding package dependencies

Add any packages the package users will need with:

``` r
Expand All @@ -114,7 +116,19 @@ Add any packages that package developers only may need with:
usethis::use_package(pkgname, type = "suggests")
```

### Updating the package version
#### Updating the README

There are two README files that are linked with a pre-commit-hook to
ensure are kept in sync.

Make all changes to the `README.Rmd` file and then run the following
line to rebuild:

``` r
devtools::build_readme()
```

#### Updating the package version

Once changes have been completed, reviewed and are ready for use in the
wild, you can increment the package version using:
Expand Down

0 comments on commit 2e3f70e

Please sign in to comment.