Skip to content

Commit

Permalink
adding INLA repo also for CRAN
Browse files Browse the repository at this point in the history
  • Loading branch information
j-i-l committed Aug 7, 2024
1 parent f91b253 commit f14f472
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ install.packages('pak', repos=c(CRAN="https://cran.r-project.org"))
To install `abn` run in your R session:

```R
pak::repo_add(INLA = "https://inla.r-inla-download.org/R/stable/")
pak::repo_add(INLA = "https://inla.r-inla-download.org/R/stable/")
pak::pkg_install("furrer-lab/[email protected]", dependencies=TRUE)
```
_**Note:** The first command can be skipped on MacOS or Windows._
Expand All @@ -329,8 +329,10 @@ _**Note:** The first command can be skipped on MacOS or Windows._
In order to install the `abn` version on CRAN, open an R session and type:

```R
pak::repo_add(INLA = "https://inla.r-inla-download.org/R/stable/")
pak::pkg_install("abn", dependencies=TRUE)
```
_**Note:** The first command can be skipped on MacOS or Windows._

`abn` has several dependencies that are not available on CRAN.
This is why we rely on [pak](https://pak.r-lib.org/) for the installation and the [Prior to installing](#prior-to-installing) section should be followed through before installing `abn` from CRAN. [^1]
Expand Down Expand Up @@ -366,7 +368,7 @@ Installing from source is done with the following steps:
3. Build and install the local content with dependencies:

```R
pak::repo_add(INLA = "https://inla.r-inla-download.org/R/stable/")
pak::repo_add(INLA = "https://inla.r-inla-download.org/R/stable/")
pak::local_install(dependencies=TRUE)
```
_**Note:** The first command can be skipped on MacOS or Windows._
Expand Down

0 comments on commit f14f472

Please sign in to comment.