You
should
use
renv.

workshop

agenda

why

how

why

sermon

you should use renv.

commandment

projects should be reproducible.

how

on repositories

renv: custom R package repositories

get

> options("repos")
$repos
                                         CRAN 
"https://packagemanager.posit.co/cran/latest" 

set:

posit public package manager (p3m)

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

set: posit package manager

options(repos = c(ppm = "https://packagemanager.example.com/cran/__linux__/jammy/latest"))

fetch examples

usethis::use_zip("edavidaja/renv-workshop")

or

git clone https://gitlab.com/edavidaja/renv-workshop

new project

existing project

old project

an old shiny app

R version migration

rig