From e3cb8a0b29dd62aefef53655cd5fd9dc0795ca52 Mon Sep 17 00:00:00 2001 From: edavidaja Date: Fri, 19 Jan 2024 12:04:22 -0500 Subject: [PATCH] update repos examples --- workshop.qmd | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/workshop.qmd b/workshop.qmd index 497b941..7523cc5 100644 --- a/workshop.qmd +++ b/workshop.qmd @@ -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") @@ -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:password@artifactory.ourinternalurl.ca/artifactory/cran-remote")) +``` ## fetch examples