diff --git a/R/helpers.R b/R/helpers.R index e9f8394..377badb 100644 --- a/R/helpers.R +++ b/R/helpers.R @@ -65,7 +65,7 @@ write_rmd <- function(data, ...) { ## Ref: https://github.com/quarto-dev/quarto-cli/discussions/4041 ## Outputs to the same as the .qmd file rmarkdown::render( - params = list(data.file = "web_data.rds"), + params = list(data.file = "web_data.rds",version=app_version()), # execute_params = list(data.file = temp), ... ) diff --git a/inst/apps/FreesearchR/www/report.rmd b/inst/apps/FreesearchR/www/report.rmd index b93d47e..9a2013b 100644 --- a/inst/apps/FreesearchR/www/report.rmd +++ b/inst/apps/FreesearchR/www/report.rmd @@ -6,6 +6,7 @@ author: FreesearchR data analysis tool toc: false params: data.file: NA + version: NA --- ```{r setup, echo = FALSE} @@ -46,7 +47,7 @@ Research should be free and open with easy access for all. The FreesearchR tool ## Methods -Analyses were conducted in the *FreesearchR* data analysis web-tool based on R version 4.4.1. +Analyses were conducted using the *FreesearchR* data analysis web-tool version `r params$version` based on *R* version 4.4.1. ## Results