-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
13 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,25 @@ | ||
You can install the latest released version using the normal `R` function, though you need to point to `r-universe` instead of CRAN: | ||
You can install the latest released version from CRAN using the standard `install.packages` function: | ||
|
||
```{r, eval = FALSE} | ||
install.packages( | ||
"primarycensored", | ||
repos = "https://epinowcast.r-universe.dev" | ||
) | ||
install.packages("primarycensored") | ||
``` | ||
|
||
Alternatively, you can use the [`remotes` package](https://remotes.r-lib.org/) to install the development version from Github (warning! this version may contain breaking changes and/or bugs): | ||
Alternatively, you can install the latest release from our r-universe repository: | ||
|
||
```{r, eval = FALSE} | ||
remotes::install_github( | ||
"epinowcast/primarycensored", | ||
dependencies = TRUE | ||
) | ||
install.packages("primarycensored", repos = "https://epinowcast.r-universe.dev") | ||
``` | ||
|
||
Similarly, you can install historical versions by specifying the release tag (e.g. this installs [`0.2.0`](https://github.com/epinowcast/primarycensored/releases/tag/v0.2.0)): | ||
To install the development version from GitHub (warning! this version may contain breaking changes and/or bugs), use the [`pak` package](https://pak.r-lib.org/): | ||
|
||
```{r, eval = FALSE} | ||
remotes::install_github( | ||
"epinowcast/primarycensored", | ||
dependencies = TRUE, ref = "v0.2.0" | ||
) | ||
pak::pak("epinowcast/primarycensored") | ||
``` | ||
|
||
*Note: You can also use that last approach to install a specific commit if needed, e.g. if you want to try out a specific unreleased feature, but not the absolute latest developmental version.* | ||
Similarly, you can install historical versions by specifying the release tag (e.g., [`v0.2.0`](https://github.com/epinowcast/primarycensored/releases/tag/v0.2.0)): | ||
|
||
```{r, eval = FALSE} | ||
pak::pak("epinowcast/primarycensored@v0.2.0") | ||
``` | ||
|
||
*Note: You can also use the above approach to install a specific commit if needed, for example, if you want to try out a specific unreleased feature, but not the absolute latest developmental version.* |