Skip to content
Snippets Groups Projects
Commit 71e44547 authored by Nilesh Kumar's avatar Nilesh Kumar
Browse files

Update U_BDS_general_template.Rmd

parent f9775adb
No related branches found
No related tags found
No related merge requests found
......@@ -14,6 +14,35 @@ output:
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
knitr::knit_hooks$set(time_it = local({
now <- NULL
function(before, options) {
if (before) {
# record the current time before each chunk
now <<- Sys.time()
} else {
# calculate the time difference after a chunk
res <- difftime(Sys.time(), now)
# return a character string to show the time
paste("Time for this code chunk to run:", res)
}
}
}))
knitr::opts_chunk$set(time_it = TRUE)
Fig_dir = "./results/"
dir.create(Fig_dir, showWarnings = FALSE)
knitr::opts_chunk$set(fig.width=10, fig.height=10, fig.path=Fig_dir,
echo=TRUE, warning=FALSE, message=FALSE, dpi = 300, fig.retina = 2)
```
```{r klippy, echo=FALSE, include=TRUE}
# install.packages("remotes")
# remotes::install_github("rlesur/klippy")
klippy::klippy()
```
# Overview
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment