<aside> <img src="/icons/info-alternate_blue.svg" alt="/icons/info-alternate_blue.svg" width="40px" />

Renku does not (yet!) support to configure custom dependencies so that they are pre-installed at the launch of your session. In this guide, we provide some guidance on the process to install your project’s dependencies in your session.

</aside>

<aside> <img src="/icons/report_yellow.svg" alt="/icons/report_yellow.svg" width="40px" />

Remember, you need to install the dependencies every time you launch or resume your session.

</aside>

Choose your language:

Python

Add packages to your project dependencies

To add packages to your environment, add the packages to the dependencies file. When you’re working in Python, this is the requirements.txt file.

To add your project’s dependencies to requirements.txt, simply list the package names. Optionally, you may specify specific package versions, as shown in the example below.

pandas
numpy==1.22.0

Install the packages

Every time you start or resume the session, install the packages you listed in the dependency file by running the following command in the terminal:

**$** pip install -r requirements.txt

R

Add packages to your project dependencies

To add packages to your environment, add the packages to the dependencies file: install.R.

To specify your project dependencies in install.R, write the R package install commands.

Note that the base R install.packages function can only install the latest version of a package on CRAN. To install a specific version, use devtools::install_version. If the package is not on CRAN and exists as a github repo, you can use install_github instead. These two scenarios are shown in the example below.

devtools::install_version("ggplot2",
            version = "3.3.6",
            repos = "<http://cran.us.r-project.org>",
            upgrade="always")
devtools::install_github("thomasp85/patchwork")

Install the packages

Every time you start or resume the session, install the packages you listed in the dependency file by running the following command in the terminal:

**$** R -f install.R