Skip to content

Commit

Permalink
Add git head checksum to preface
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemc committed Sep 15, 2021
1 parent c5e3334 commit 6932587
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions index.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ output:

# Preface {-}

```{r}
repo <- git2r::repository(".")
sha <- repo %>% git2r::commits(n = 1) %>% .[[1]] %>% git2r::sha()
```

_This manuscript was rendered from commit `r sha`._

::: {#preface-warning .rmdnote}

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

0 comments on commit 6932587

Please sign in to comment.