If you work in a Domino workspace with RStudio or VS Code, you can use the Posit Package Manager (PPM) integration to manage R packages. This is especially useful in GxP-regulated Life Sciences workflows, where reproducibility and validation are critical.
This integration helps you:
-
Search for packages across PPM snapshots
-
See which snapshot is configured in your
renv.lockfile -
Install packages with a single command
-
Maintain reproducibility for GxP-regulated workflows
Search for packages with or without version numbers. The integration shows which snapshots contain them and highlights your current snapshot.
Select a snapshot and copy a formatted command for R or bash. This command can install packages, update your environment, and write changes to renv.lock. Your admin can customize the command logic to meet GxP compliance requirements.
Paste and run the command in your workspace.
Before you use PPM integration, verify these requirements:
-
A network-accessible PPM server
-
Your admin has configured a PPM server in Domino
-
Your admin has configured the environment to include an
update.R scriptwhich handles:-
Package installation
-
renvupdates -
Snapshotting the
renv.lockfile -
GxP compliance logic
-
Use the PPM integration to find packages. Search by package name to see which snapshots include them.
-
Launch a workspace using RStudio or VS Code.
-
In the left sidebar, select Posit Package Manager.
-
In the PPM panel, enter a comma-separated list of R packages.
You can optionally include version constraints using
==,>=,<=,<, or>. The panel shows snapshots that contain all the packages and meet version constraints. -
Review the snapshot currently defined in your
renv.lockfile at the top of the panel.
After you select a snapshot, install packages and update your environment with a single command.
-
Click the copy button next to your selected snapshot.
-
Choose either R or Bash based on where you want to run the command (in the R console or in the terminal).
-
Paste and run the command in your workspace. For example, if you pick
R, it looks something like this:source("/home/ubuntu/update.R"); manage_renv_environment( cran_url = "http://rstudio-service.rstudio.svc.cluster.local:80/cran/2025-04-10", packages = c("dplyr", "ggplot2") )This command runs a script configured by your admin. The script can install packages, update the environment, run
renv::snapshot(), or execute GxP compliance logic. -
Select the refresh icon at the top of the PPM panel.
-
Your selected snapshot now appears under PPM Snapshot(s).
-
Learn about launching workspaces in Domino.
-
View workspace details about user actions, view current and historical workspace resource usage, and view sessions and commits that were made in a workspace.
