Skip to contents

Rhino uses renv to manage the R package dependencies of your project. To learn about the details and rationale for the particular setup used by Rhino, please refer to Explanation: Renv configuration.

This article offers short recipes for the most common tasks: adding, updating and removing dependencies.

Add a dependency

  1. Add a library(package) line to dependencies.R.
  2. Call renv::install("package").
  3. Call renv::snapshot().

Update a dependency

  1. Call renv::update("package").
  2. Call renv::snapshot().

Remove a dependency

  1. Remove the library(package) line from dependencies.R.
  2. Call renv::snapshot().
  3. Call renv::restore(clean = TRUE).