Skip to content

Commit cc6aae8

Browse files
Merge pull request #24 from r-devel/21_test_write_permission
test pre-commit with `write` permission
2 parents 2ff36e3 + 17d2a6e commit cc6aae8

3 files changed

Lines changed: 41 additions & 14 deletions

File tree

README.Rmd

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,26 @@ You can install the development version of glossary from [GitHub](https://github
2121
pak::pak("r-devel/glossary")
2222
```
2323

24-
## using pre commit without repo permissions
24+
## Using precommit when contributing
2525

26-
- fork the repo and clone it locally
27-
- install.packages("devtools")
28-
- In a separate terminal (not R studio terminal), run `pip3 install pre-commit --user` (on windows)
29-
- install.packages("precommit")
30-
- On R studio, run `precommit::use_precommit()` (only once in a repo)
26+
This repository uses precommit. To install and run the same, follow the steps below:
3127

28+
- In an external terminal run `pip3 install pre-commit --user` (for Windows) or `brew install pre-commit` (for macOS).
29+
- Based on the level of permissions you have, either directly clone this repository or clone a fork of this repository to a local directory.
3230

31+
``` zsh
32+
git clone https://github.com/r-devel/glossary (or git clone https://github.com/USER_NAME/glossary, if it is your fork of the repo)
33+
cd glossary
34+
```
35+
36+
- Install the {devtools} and {precommit} package.
37+
38+
``` r
39+
install.packages("devtools")
40+
install.packages("precommit")
41+
```
42+
43+
- Run `precommit::use_precommit()` in the console.
3344
3445
## Example
3546

README.md

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,29 @@ You can install the development version of glossary from
2727
pak::pak("r-devel/glossary")
2828
```
2929

30-
## using pre commit without repo permissions
31-
32-
- fork the repo and clone it locally
33-
- install.packages(“devtools”)
34-
- In a separate terminal (not R studio terminal), run
35-
`pip3 install pre-commit --user` (on windows)
36-
- install.packages(“precommit”)
37-
- On R studio, run `precommit::use_precommit()` (only once in a repo)
30+
## Using precommit when contributing
31+
32+
This repository uses precommit. To install and run the same, follow the
33+
steps below:
34+
35+
- In an external terminal run `pip3 install pre-commit --user` (for
36+
Windows) or `brew install pre-commit` (for macOS).
37+
- Based on the level of permissions you have, either directly clone this
38+
repository or clone a fork of this repository to a local directory.
39+
40+
``` zsh
41+
git clone https://github.com/r-devel/glossary (or git clone https://github.com/USER_NAME/glossary, if it is your fork of the repo)
42+
cd glossary
43+
```
44+
45+
- Install the {devtools} and {precommit} package.
46+
47+
``` r
48+
install.packages("devtools")
49+
install.packages("precommit")
50+
```
51+
52+
- Run `precommit::use_precommit()` in the console.
3853
3954
## Example
4055

inst/WORDLIST

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ repo
1414
Roxygen
1515
RoxygenNote
1616
RSE
17+
RStudio
1718
Saranjeet

0 commit comments

Comments
 (0)