Skip to content

Commit 6932587

Browse files
committed
Add git head checksum to preface
1 parent c5e3334 commit 6932587

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

index.Rmd

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@ output:
4646

4747
# Preface {-}
4848

49+
```{r}
50+
repo <- git2r::repository(".")
51+
sha <- repo %>% git2r::commits(n = 1) %>% .[[1]] %>% git2r::sha()
52+
```
53+
54+
_This manuscript was rendered from commit `r sha`._
55+
4956
::: {#preface-warning .rmdnote}
5057

5158
**This in-progress manuscript is not intended for general scientific use.**

0 commit comments

Comments
 (0)