pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/pre-commit/pre-commit.com/commit/5842b2ccb7e15f9f8305c951a34bd89a9fb375ed

anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/global-9c8f61f9f58ad7b2.css" /> more details on R hooks · pre-commit/pre-commit.com@5842b2c · GitHub
Skip to content

Commit 5842b2c

Browse files
lorenzwalthertasottile
authored andcommitted
more details on R hooks
1 parent a12f914 commit 5842b2c

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

sections/new-hooks.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,22 @@ has been tested on linux, macOS, windows, and cygwin.
351351
352352
_new in 2.11.0_
353353
354+
This hook repository must have a `renv.lock` file that will be restored with
355+
[`renv::restore()`](https://rstudio.github.io/renv/reference/restore.html) on
356+
hook installation. If the repository is an R package (i.e. has `Type: Package`
357+
in `DESCRIPTION`), it is installed. The supported syntax in [`entry`](#hooks-entry) is
358+
`Rscript -e {expression}` or `Rscript path/relative/to/hook/root`. The
359+
R Startup process is skipped (emulating `--vanilla`), as all configuration
360+
should be exposed via [`args`](#hooks-args) for maximal transparency and portability.
361+
362+
When specifying [`additional_dependencies`](#config-additional_dependencies)
363+
for R, you can use any of the install argument formats understood by
364+
[`renv::install()`](https://rstudio.github.io/renv/reference/install.html#examples).
365+
366+
__Support:__ `r` hooks work as long as [`R`](https://www.r-project.org) is
367+
installed and on `PATH`. It has been tested on linux, macOS, and windows.
368+
369+
354370
### ruby
355371
356372
The hook repository must have a `*.gemspec`. It will be installed via

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy