You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can automatically adjust our styling and lint by [pre-commit](https://pre-commit.com/):
54
+
Styling and linting can be set up and performed entirely with the [pre-commit](https://pre-commit.com/) tool:
55
55
56
56
```bash
57
57
pre-commit run --show-diff-on-failure --color=always --all-files r
@@ -67,6 +67,15 @@ You can automatically change the formatting of the code in the package using the
67
67
68
68
The styler package will fix many styling errors, thought not all lintr errors are automatically fixable with styler. The list of files we intentionally do not style is in `r/.styler_excludes.R`.
69
69
70
+
Linting and styling with [pre-commit](https://pre-commit.com/) as described above is the best way to ensure your changes are being checked properly but you can also run the tools individually if you prefer:
71
+
72
+
```r
73
+
lintr::lint_package() # for linting
74
+
styler::style_pkg() # for styling
75
+
```
76
+
77
+
Note: To run lintr, we require the `cyclocomp` package to be installed first.
78
+
70
79
### C++ code
71
80
72
81
The arrow package uses some customized tools on top of [cpp11](https://cpp11.r-lib.org/) to prepare its
0 commit comments