library(dovetail)
knitr::opts_chunk$set(echo = FALSE)
x  <- "The cat purrrs on my lap."
print(getwd())
print(knitr::opts_chunk$get("cache.path"))

```{callout cacheme, cache = TRUE, message = TRUE}

' ```r

message("this chunk will not be cached") s <- Sys.time() Sys.sleep(0.1) e <- Sys.time() print(getwd())

' ```

' I think it may be possible to cache this r round(e - s, 2) second chunk.

'

'

' r x

'

```{discussion echo = TRUE}
#' This code chunk should echo itself
#' ```r
x
#' ```


carpentries/dovetail documentation built on Sept. 23, 2021, 9:35 p.m.