Skip to content

Commit

Permalink
update repos examples
Browse files Browse the repository at this point in the history
  • Loading branch information
edavidaja committed Jan 19, 2024
1 parent 38cb26f commit e3cb8a0
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions workshop.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ the goal is for the project to be reproducible to the maximum extent possible

# how

## [on repositories](https://rstudio.github.io/renv/articles/package-sources.html#custom-r-package-repositories)
## on repositories

[renv: custom R package repositories](https://rstudio.github.io/renv/articles/package-sources.html#custom-r-package-repositories)

## get

```bash
> options("repos")
Expand All @@ -72,9 +76,20 @@ $repos
"https://packagemanager.posit.co/cran/latest"
```

::: notes
renv will
:::
## set:

posit public package manager (p3m)

```r
options(repos = c(CRAN = "https://p3m.dev/cran/latest"))
options("repos")
```

## set: StatCan

```r
options(repos = c(artifactory = "https://username:[email protected]/artifactory/cran-remote"))
```

## fetch examples

Expand Down

0 comments on commit e3cb8a0

Please sign in to comment.