| 1 |
## ----include=FALSE------------------------------------------------------------ |
| 2 |
knitr::opts_chunk$set( |
| 3 |
collapse = TRUE, |
| 4 |
comment = "#>", |
| 5 |
eval = FALSE |
| 6 |
) |
| 7 |
|
| 8 |
## ----setup-------------------------------------------------------------------- |
| 9 |
# library(renv) |
| 10 |
|
| 11 |
## ----------------------------------------------------------------------------- |
| 12 |
# repos <- c(CRAN = "https://cloud.r-project.org", WORK = "https://work.example.org") |
| 13 |
# options(repos = repos) |
| 14 |
|
| 15 |
## ----------------------------------------------------------------------------- |
| 16 |
# # use packages as they were on 2024-01-15 |
| 17 |
# renv::checkout(date = "2024-01-15") |
| 18 |
|
| 19 |
## ----------------------------------------------------------------------------- |
| 20 |
# renv::checkout(date = "2024-01-15", actions = "snapshot") |
| 21 |
|
| 22 |
## ----------------------------------------------------------------------------- |
| 23 |
# # use the latest-available Bioconductor release |
| 24 |
# renv::init(bioconductor = TRUE) |
| 25 |
# |
| 26 |
# # use a specific version of Bioconductor |
| 27 |
# renv::init(bioconductor = "3.20") |
| 28 |
|
| 29 |
## ----------------------------------------------------------------------------- |
| 30 |
# renv::settings$bioconductor.version("3.20") |
| 31 |
|
| 32 |
## ----------------------------------------------------------------------------- |
| 33 |
# options(renv.bioconductor.repos = c(...)) |
| 34 |
|
| 35 |
## ----------------------------------------------------------------------------- |
| 36 |
# renv:::renv_paths_cellar() |
| 37 |
|
| 38 |
## ----------------------------------------------------------------------------- |
| 39 |
# # please don't do this! |
| 40 |
# `%>%` <- magrittr::`%>%` |
| 41 |
|