Skip to content

Commit 68d17ac

Browse files
krlmlrclaude
andauthored
chore: Add Claude session hooks for automated dependency installation and testing (#835)
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 87c2cc8 commit 68d17ac

3 files changed

Lines changed: 22 additions & 0 deletions

File tree

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
^\.lintr$
2626
_cache$
2727
^\.vscode$
28+
^\.claude$
2829
^vignettes/.*\.html$
2930
^CRAN-SUBMISSION$
3031
^\.aviator/config\.yml$

.claude/hooks/session-start.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
set -euo pipefail
3+
4+
# Install all hard and soft dependencies for the pillar R package
5+
# This ensures all packages needed for development and testing are available
6+
7+
Rscript -e 'pak::pak()'

.claude/settings.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"hooks": {
3+
"SessionStart": [
4+
{
5+
"hooks": [
6+
{
7+
"type": "command",
8+
"command": "$CLAUDE_PROJECT_DIR/.claude/hooks/session-start.sh"
9+
}
10+
]
11+
}
12+
]
13+
}
14+
}

0 commit comments

Comments
 (0)