Installing custom packages in Domino with Git integration
Domino allows users to install internally developed custom R and Python packages stored in GitHub or GitHub Enterprise. For best performance, this should often be done by creating a custom environment. However, if the user does not want to create a custom environment or is running a quick test or prototype, it is possible to install these packages inside of a Domino project.
Configuring Git Integration
Users should begin by configuring git integration in their desired Domino projects.
Installing a Custom Python Package
If it doesn't already exist, create a file named requirements.txt in the root directory of your project. Add the following line to requirements.txt:
Once this requirements.txt is in place, Domino will automatically install the Python package every time a workspace or batch run starts within the project.
Installing a Custom R Package
If it doesn't already exist, create a file named install.R; in the root directory of your project. Add the following line to install.R:
For example, if a user wanted to install ggplot2 from a git repository, his or her install.R should look like:
Once this install.R is in place, users should put a line:
at the beginning of their work within the project to install the project for their sessions