From b7b688f8b12edc02a006bdc1a9b19063244a8873 Mon Sep 17 00:00:00 2001 From: Andreas Gammelgaard Damsbo Date: Mon, 5 May 2025 14:44:37 +0200 Subject: [PATCH] version in report --- R/helpers.R | 2 +- inst/apps/FreesearchR/www/report.rmd | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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