8000 More details on R hooks by lorenzwalthert · Pull Request #474 · pre-commit/pre-commit.com · GitHub
[go: up one dir, main page]

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions sections/new-hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,22 @@ has been tested on linux, macOS, windows, and cygwin.

_new in 2.11.0_

This hook repository must have a `renv.lock` file that will be restored with
[`renv::restore()`](https://rstudio.github.io/renv/reference/restore.html) on
hook installation. If the repository is an R package (i.e. has `Type: Package`
in `DESCRIPTION`), it is installed. The supported syntax in [`entry`](#hooks-entry) is
`Rscript -e {expression}` or `Rscript path/relative/to/hook/root`. The
R Startup process is skipped (emulating `--vanilla`), as all configuration
should be exposed via [`args`](#hooks-args) for maximal transparency and portability.

When specifying [`additional_dependencies`](#config-additional_dependencies)
for R, you can use any of the install argument formats understood by
[`renv::install()`](https://rstudio.github.io/renv/reference/install.html#examples).

__Support:__ `r` hooks work as long as [`R`](https://www.r-project.org) is
installed and on `PATH`. It has been tested on linux, macOS, and windows.


### ruby

The hook repository must have a `*.gemspec`. It will be installed via
Expand Down
0