From ceeb771715ccf33265d063324ab45806417ced3a Mon Sep 17 00:00:00 2001 From: Quentin Marcou <18257721+qmarcou@users.noreply.github.com> Date: Fri, 26 Apr 2024 19:21:55 +0200 Subject: [PATCH] Add Tests badge to Readme --- README.Rmd | 1 + README.md | 7 ++----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/README.Rmd b/README.Rmd index 08dc27e..8a619c0 100644 --- a/README.Rmd +++ b/README.Rmd @@ -16,6 +16,7 @@ knitr::opts_chunk$set( # netidmtpreg +[![Tests](https://github.com/qmarcou/netidmtpreg/actions/workflows/test-coverage.yaml/badge.svg)](https://github.com/qmarcou/netidmtpreg/actions/workflows/test-coverage.yaml) [![R-CMD-check](https://github.com/qmarcou/netidmtpreg/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/qmarcou/netidmtpreg/actions/workflows/R-CMD-check.yaml) diff --git a/README.md b/README.md index 965ddee..279c6c3 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ +[![Tests](https://github.com/qmarcou/netidmtpreg/actions/workflows/test-coverage.yaml/badge.svg)](https://github.com/qmarcou/netidmtpreg/actions/workflows/test-coverage.yaml) [![R-CMD-check](https://github.com/qmarcou/netidmtpreg/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/qmarcou/netidmtpreg/actions/workflows/R-CMD-check.yaml) @@ -25,6 +26,7 @@ working. This can be accomplished using `devtools` ``` r devtools::dev_mode(on = TRUE) devtools::install_local(force = TRUE) # force package update +devtools::load_all() # required to make tests visible testthat::test_package("netidmtpreg") # or testthat::test_check("netidmtpreg") to run R CMD check ``` @@ -35,11 +37,6 @@ This is a basic example which shows you how to solve a common problem: ``` r library(netidmtpreg) -#> Loading required package: doParallel -#> Loading required package: foreach -#> Loading required package: iterators -#> Loading required package: parallel -#> Loading required package: survival ## basic example code ```