Technical requirements
We will use renv
to manage packages in a project-specific way. To use renv
to install packages, you will first need to install the renv
package itself. Here’s how to install renv
and then use it to install packages:
- Run the following command in your R console:
install.packages("renv")
- Next, you will need to create a new
renv
environment for your project by running the following command:renv::init()
- This will create a new directory called
.renv
in your current project directory. - You can then install packages with the following command:
install.packages("<package name>")
- You can also use the
renv
package manager to install Bioconductor packages by running the following command:renv::install("bioc::<package name>")
- For example, to install the
Biobase
package, you would run the following command:renv::install("bioc::Biobase")
- You can use
renv
to install development packages from GitHub...