From 2a9e1c6ad558124d40d16e1b40c76ad17bcef346 Mon Sep 17 00:00:00 2001 From: Tanguy BARTHELEMY Date: Tue, 9 Jul 2024 19:29:15 +0200 Subject: [PATCH] Add r-universe installation code in README --- README.Rmd | 26 ++++++++++++++++++++++++-- README.md | 22 +++++++++++++++++++++- 2 files changed, 45 insertions(+), 3 deletions(-) diff --git a/README.Rmd b/README.Rmd index 404c465..7fa42f3 100644 --- a/README.Rmd +++ b/README.Rmd @@ -34,10 +34,32 @@ rjd3highfreq provides functions for seasonal adjustment of high-frequency data d Running rjd3 packages requires **Java 17 or higher**. How to set up such a configuration in R is explained [here](https://jdemetra-new-documentation.netlify.app/#Rconfig) + +### Latest release + +To get the current stable version (from the latest release): + +- From GitHub: + +```{r, echo = TRUE, eval = FALSE} +# install.packages("remotes") +remotes::install_github("rjdverse/rjd3toolkit@*release") +remotes::install_github("rjdverse/rjd3sts@*release") +remotes::install_github("rjdverse/rjd3highfreq@*release") +``` + +- From [r-universe](https://rjdverse.r-universe.dev/rjd3highfreq): + +```{r, echo = TRUE, eval = FALSE} +install.packages("rjd3highfreq", repos = c("https://rjdverse.r-universe.dev", "https://cloud.r-project.org")) +``` + + +### Development version + You can install the development version of **rjd3highfreq** from [GitHub](https://github.com/) with: -```{r, eval = FALSE} -# Install development version from GitHub +```{r, echo = TRUE, eval = FALSE} # install.packages("remotes") remotes::install_github("rjdverse/rjd3highfreq") ``` diff --git a/README.md b/README.md index 0517612..8c6153f 100644 --- a/README.md +++ b/README.md @@ -26,11 +26,31 @@ Running rjd3 packages requires **Java 17 or higher**. How to set up such a configuration in R is explained [here](https://jdemetra-new-documentation.netlify.app/#Rconfig) +### Latest release + +To get the current stable version (from the latest release): + +- From GitHub: + +``` r +# install.packages("remotes") +remotes::install_github("rjdverse/rjd3toolkit@*release") +remotes::install_github("rjdverse/rjd3sts@*release") +remotes::install_github("rjdverse/rjd3highfreq@*release") +``` + +- From [r-universe](https://rjdverse.r-universe.dev/rjd3highfreq): + +``` r +install.packages("rjd3highfreq", repos = c("https://rjdverse.r-universe.dev", "https://cloud.r-project.org")) +``` + +### Development version + You can install the development version of **rjd3highfreq** from [GitHub](https://github.com/) with: ``` r -# Install development version from GitHub # install.packages("remotes") remotes::install_github("rjdverse/rjd3highfreq") ```