Skip to content

Commit cf88089

Browse files
add template for renv for local hooks with additional dependencies
1 parent b32f480 commit cf88089

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"R": {
3+
"Version": "4.0.3",
4+
"Repositories": [
5+
{
6+
"Name": "CRAN",
7+
"URL": "https://cran.rstudio.com"
8+
}
9+
]
10+
},
11+
"Packages": {
12+
"renv": {
13+
"Package": "renv",
14+
"Version": "0.12.5",
15+
"Source": "Repository",
16+
"Repository": "CRAN",
17+
"Hash": "5c0cdb37f063c58cdab3c7e9fbb8bd2c"
18+
}
19+
}
20+
}

pre_commit/store.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def _git_cmd(*args: str) -> None:
189189
LOCAL_RESOURCES = (
190190
'Cargo.toml', 'main.go', 'go.mod', 'main.rs', '.npmignore',
191191
'package.json', 'pre_commit_dummy_package.gemspec', 'setup.py',
192-
'environment.yml', 'Makefile.PL',
192+
'environment.yml', 'Makefile.PL', 'renv.lock',
193193
)
194194

195195
def make_local(self, deps: Sequence[str]) -> str:

0 commit comments

Comments
 (0)