From 8ca3e7507b09d1cf52af5140a5b3250040aa1f9f Mon Sep 17 00:00:00 2001 From: Alan Haynes Date: Fri, 13 Dec 2024 14:20:29 +0100 Subject: [PATCH] add version badge --- .github/workflows/pkgdown.yaml | 2 +- README.Rmd | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pkgdown.yaml b/.github/workflows/pkgdown.yaml index 0070647..37b115b 100644 --- a/.github/workflows/pkgdown.yaml +++ b/.github/workflows/pkgdown.yaml @@ -33,7 +33,7 @@ jobs: - name: Install dependencies run: | remotes::install_deps(dependencies = TRUE) - install.packages(c("pkgdown", "devtools", "rmarkdown"), type = "binary") + install.packages(c("pkgdown", "devtools", "rmarkdown", "badger"), type = "binary") shell: Rscript {0} - name: Install package diff --git a/README.Rmd b/README.Rmd index bdd9984..19db0cf 100644 --- a/README.Rmd +++ b/README.Rmd @@ -16,6 +16,9 @@ knitr::opts_chunk$set( # SCTORvalidation + +`r badger::badge_custom("dev version", as.character(packageVersion("SCTORvalidation")), "blue", "https://github.com/SwissClinicalTrialOrganisation/SCTORvalidation_Rpackage")` + The goal of SCTORvalidation is to provide an easy approach for the documentation and implementation of package and function tests for the SCTO R validation project. Package validations themselves can be found in the [validation_platform repository](https://github.com/SwissClinicalTrialOrganisation/validation_platform).