Skip to content

Commit

Permalink
placeholder for duration
Browse files Browse the repository at this point in the history
ref #561
  • Loading branch information
wibeasley committed Jan 10, 2025
1 parent c607bbc commit c1d871f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vignettes/BasicREDCapROperations.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ The functions [`redcap_read()`](https://ouhscbbmc.github.io/REDCapR/reference/re
#| echo = FALSE, results = 'hide'
report_render_start_time <- Sys.time()
report_render_duration_in_seconds <- -999 # In case the vignette isn't evaluated (on CRAN)
library(knitr)
library(magrittr)
Expand Down Expand Up @@ -165,7 +166,7 @@ if (requireNamespace("sessioninfo", quietly = TRUE)) {
</details>

```{r session-duration, echo=FALSE}
report_render_duration <- round(as.numeric(difftime(Sys.time(), report_render_start_time, units = "secs")))
report_render_duration_in_seconds <- round(as.numeric(difftime(Sys.time(), report_render_start_time, units = "secs")))
```

Report rendered by `r Sys.info()["user"]` at `r strftime(Sys.time(), "%Y-%m-%d, %H:%M %z")` in `r report_render_duration` seconds.
Report rendered by `r Sys.info()["user"]` at `r strftime(Sys.time(), "%Y-%m-%d, %H:%M %z")` in `r report_render_duration_in_seconds` seconds.
1 change: 1 addition & 0 deletions vignettes/advanced-redcapr-operations.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ This vignette covers the the less-typical uses of [REDCapR](https://github.com/O
#| results = 'hide'
report_render_start_time <- Sys.time()
report_render_duration_in_seconds <- -999 # In case the vignette isn't evaluated (on CRAN)
library(knitr)
library(magrittr)
Expand Down

0 comments on commit c1d871f

Please sign in to comment.