diff --git a/.github/workflows/rebuild-readme.yaml b/.github/workflows/rebuild-readme.yaml index 78344bfd..82769813 100644 --- a/.github/workflows/rebuild-readme.yaml +++ b/.github/workflows/rebuild-readme.yaml @@ -24,7 +24,7 @@ jobs: remotes::install_cran("data.table") remotes::install_cran("covr") remotes::install_github("lorenzwalthert/gitsum") - remotes::install_github("pharmaR/riskmetric") + remotes::install_github("pharmaR/riskmetric@v0.1.1") install.packages("ggthemes") remotes::install_deps(dependencies = TRUE) shell: Rscript {0} diff --git a/README.Rmd b/README.Rmd index 02543e15..1ff49232 100644 --- a/README.Rmd +++ b/README.Rmd @@ -14,8 +14,8 @@ knitr::opts_chunk$set( ) library(visR) +library(riskmetric) -#library(riskmetric) riskmetric_score <- "visR" %>% riskmetric::pkg_ref() %>% dplyr::as_tibble() %>% diff --git a/README.md b/README.md index 07402648..cdb6eb90 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ current focus on developing a stable API. | [![R-CMD-check](https://github.com/openpharma/visR/actions/workflows/check-standard.yaml/badge.svg?branch=main)](https://github.com/openpharma/visR/actions/workflows/check-standard.yaml) | `main` branch | | [![pkgdown](https://github.com/openpharma/visR/actions/workflows/makedocs.yml/badge.svg)](https://github.com/openpharma/visR/actions/workflows/makedocs.yml) | Documentation building to [Github pages](https://openpharma.github.io/visR/) | | [![CRAN status](https://www.r-pkg.org/badges/version/visR)](https://CRAN.R-project.org/package=visR) | Latest CRAN release | -| | `riskmetric` score | +| | `riskmetric` score | @@ -117,8 +117,7 @@ covr::package_coverage( code = "tools::testInstalledPackage(pkg = 'visR', types = c('tests'))", quiet = FALSE ) -#> visR Coverage: 99.64% -#> R/estimate_cuminc.R: 85.71% +#> visR Coverage: 99.88% #> R/visr.R: 99.12% #> R/add_annotation.R: 100.00% #> R/add_CI.R: 100.00% @@ -128,6 +127,7 @@ covr::package_coverage( #> R/add_risktable.R: 100.00% #> R/apply_attrition.R: 100.00% #> R/apply_theme.R: 100.00% +#> R/estimate_cuminc.R: 100.00% #> R/estimate_KM.R: 100.00% #> R/get_attrition.R: 100.00% #> R/get_COX_HR.R: 100.00%