Skip to content

Commit 3ca5bfd

Browse files
committed
track time spent building the vignette
1 parent d29335c commit 3ca5bfd

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

vignettes/workshop_isee_extension.Rmd

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,14 @@ vignette: >
1010

1111

1212
```{r, include = FALSE}
13+
## Track time spent on making the vignette
14+
startTime <- Sys.time()
15+
## knitr options
1316
knitr::opts_chunk$set(
1417
collapse = TRUE,
1518
comment = "#>"
1619
)
20+
## Load now to avoid startup messages later
1721
library(iSEE)
1822
```
1923

@@ -567,3 +571,19 @@ iSEE(sce, initial = list(
567571
```
568572

569573
How can we even tell which is which?!
574+
575+
## Session info
576+
577+
```{r}
578+
sessioninfo::session_info()
579+
```
580+
581+
## Timings
582+
583+
Wallclock time spent generating the vignette.
584+
585+
```{r reproduce2, echo=FALSE}
586+
## Processing time in seconds
587+
totalTime <- diff(c(startTime, Sys.time()))
588+
round(totalTime, digits = 3)
589+
```

0 commit comments

Comments
 (0)