AlexsLemonade / refinebio

Refine.bio harmonizes petabytes of publicly available biological data into ready-to-use datasets for cancer researchers and AI/ML scientists.
https://www.refine.bio/
Other
128 stars 19 forks source link

Get install_ensg_pkgs.R deps captured by renv #3183

Closed arkid15r closed 1 year ago

arkid15r commented 1 year ago

Problem or idea

Figure out how to get custom repository packages added to renv.lock

Solution or next step

Read renv documentation, experiment with a couple of packages.

arkid15r commented 1 year ago

After initializing renv with

options(warn = 2)
options(repos = structure(c(
    Bioconductor = "https://bioconductor.org/packages/3.6/bioc/",
    BioconductorAnnotation = "https://bioconductor.org/packages/3.6/data/annotation/",
    BioconductorExperiment = "https://bioconductor.org/packages/3.6/data/experiment",
    CRAN = "https://cloud.r-project.org/"
)))
options(Ncpus = parallel::detectCores())
options(renv.r.version = "3.6.3")
options(renv.settings.use.cache = FALSE)

install.packages("renv")
install.packages("BiocManager")

renv::init(bioconductor = "3.6")

the dependencies can be captured by renv::snapshot(type="all")