Skip to content

Commit

Permalink
install it first
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp-baumann committed Jan 27, 2024
1 parent 99b7f0f commit 49b3ed2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
20 changes: 10 additions & 10 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,16 @@ expressions. This means that you can generate expressions on a system on which
you cannot easily install software, and then use these expressions on the cloud
or on a CI/CD environment to build the project there.

If you have R installed, you can start straight away from your R session by
first installing `{rix}`:

```{r, eval=FALSE}
install.packages("rix", repos = c("https://b-rodrigues.r-universe.dev",
"https://cloud.r-project.org"))
library("rix")
```

Here is an example of how to define an environment "as code" using `rix()`:

```{r, eval = F}
Expand Down Expand Up @@ -122,16 +132,6 @@ curl --proto '=https' --tlsv1.2 -sSf \
sh -s -- install
```

If you have R installed, you can start straight away from your R session by first
installing `{rix}`:

```{r, eval=FALSE}
install.packages("rix", repos = c("https://b-rodrigues.r-universe.dev",
"https://cloud.r-project.org"))
library("rix")
```

You can check that everything works well by trying to build the Nix expression
that ships with `{rix}`. Nix expressions are typically saved into files with the
name `default.nix` or `shell.nix`. This expression installs the latest version
Expand Down
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,16 @@ expressions. This means that you can generate expressions on a system on
which you cannot easily install software, and then use these expressions
on the cloud or on a CI/CD environment to build the project there.

If you have R installed, you can start straight away from your R session
by first installing `{rix}`:

``` r
install.packages("rix", repos = c("https://b-rodrigues.r-universe.dev",
"https://cloud.r-project.org"))

library("rix")
```

Here is an example of how to define an environment “as code” using
`rix()`:

Expand Down Expand Up @@ -128,16 +138,6 @@ curl --proto '=https' --tlsv1.2 -sSf \
sh -s -- install
```

If you have R installed, you can start straight away from your R session
by first installing `{rix}`:

``` r
install.packages("rix", repos = c("https://b-rodrigues.r-universe.dev",
"https://cloud.r-project.org"))

library("rix")
```

You can check that everything works well by trying to build the Nix
expression that ships with `{rix}`. Nix expressions are typically saved
into files with the name `default.nix` or `shell.nix`. This expression
Expand Down

0 comments on commit 49b3ed2

Please sign in to comment.