File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,15 +21,26 @@ You can install the development version of glossary from [GitHub](https://github
2121pak :: 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
Original file line number Diff line number Diff line change @@ -27,14 +27,29 @@ You can install the development version of glossary from
2727pak :: 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
Original file line number Diff line number Diff line change 1414Roxygen
1515RoxygenNote
1616RSE
17+ RStudio
1718Saranjeet
You can’t perform that action at this time.
0 commit comments