From bb9726e7923a0b676b797de80fe53d1e9d69fe81 Mon Sep 17 00:00:00 2001 From: Malcolm Barrett Date: Sun, 4 Oct 2026 12:26:43 -0400 Subject: [PATCH] add R-universe installation instructions --- README.Rmd | 12 +++++++++++- README.md | 14 +++++++++++++- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/README.Rmd b/README.Rmd index e5a65800..fead2bf5 100644 --- a/README.Rmd +++ b/README.Rmd @@ -23,6 +23,7 @@ set.seed(123) [![R-CMD-check](https://github.com/r-causal/propensity/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/r-causal/propensity/actions/workflows/R-CMD-check.yaml) [![Codecov test coverage](https://codecov.io/gh/r-causal/propensity/graph/badge.svg)](https://app.codecov.io/gh/r-causal/propensity) +[![R-universe version](https://r-causal.r-universe.dev/propensity/badges/version)](https://r-causal.r-universe.dev/propensity) ## Overview @@ -44,7 +45,16 @@ You can install propensity from [CRAN](https://cran.r-project.org/) with: install.packages("propensity") ``` -You can install the development version of propensity from [GitHub](https://github.com/r-causal/propensity) with: +You can install the development version of propensity from [r-causal.r-universe.dev](https://r-causal.r-universe.dev/) with: + +``` r +install.packages( + "propensity", + repos = c("https://r-causal.r-universe.dev", getOption("repos")) +) +``` + +You can also install the development version of propensity from source from [GitHub](https://github.com/r-causal/propensity) with: ``` r # install.packages("pak") diff --git a/README.md b/README.md index 7266afb5..5dc0da3d 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,8 @@ [![R-CMD-check](https://github.com/r-causal/propensity/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/r-causal/propensity/actions/workflows/R-CMD-check.yaml) [![Codecov test coverage](https://codecov.io/gh/r-causal/propensity/graph/badge.svg)](https://app.codecov.io/gh/r-causal/propensity) +[![R-universe +version](https://r-causal.r-universe.dev/propensity/badges/version)](https://r-causal.r-universe.dev/propensity) ## Overview @@ -34,7 +36,17 @@ install.packages("propensity") ``` You can install the development version of propensity from -[GitHub](https://github.com/r-causal/propensity) with: +[r-causal.r-universe.dev](https://r-causal.r-universe.dev/) with: + +``` r +install.packages( + "propensity", + repos = c("https://r-causal.r-universe.dev", getOption("repos")) +) +``` + +You can also install the development version of propensity from source +from [GitHub](https://github.com/r-causal/propensity) with: ``` r # install.packages("pak")