Skip to content

Commit

Permalink
Merge pull request #338 from openpharma/20220228_fix_riskmetric_badge
Browse files Browse the repository at this point in the history
WIP for GH action -> Fixes riskmetric badge
  • Loading branch information
timtreis authored Feb 28, 2022
2 parents 1445407 + 6d84631 commit 7458f60
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rebuild-readme.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ knitr::opts_chunk$set(
)
library(visR)
library(riskmetric)
#library(riskmetric)
riskmetric_score <- "visR" %>%
riskmetric::pkg_ref() %>%
dplyr::as_tibble() %>%
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
| <a href=https://github.com/pharmaR/riskmetric><img src=https://img.shields.io/badge/riskmetric--1.53-green></img></a> | `riskmetric` score |
| <a href=https://github.com/pharmaR/riskmetric><img src=https://img.shields.io/badge/riskmetric-0.47-green></img></a> | `riskmetric` score |

<!-- badges: end -->

Expand Down Expand Up @@ -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%
Expand All @@ -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%
Expand Down

0 comments on commit 7458f60

Please sign in to comment.