From 6932587bd1ea9c56638c0ebe3ff7885b79b84e8c Mon Sep 17 00:00:00 2001 From: Michael McLaren Date: Wed, 15 Sep 2021 15:09:15 -0400 Subject: [PATCH] Add git head checksum to preface --- index.Rmd | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/index.Rmd b/index.Rmd index f0a45e9..de011a3 100644 --- a/index.Rmd +++ b/index.Rmd @@ -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.**