Virtual Environments

Last updated on 2024-10-24 | Edit this page

Estimated time: 0 minutes

Overview

Questions

  • What are are virtual environements and how are they used?
  • How do I create and work with virtual environments in R?

Objectives

SH

- define the term virtual environment and explain how virtual environments are used
- create a virtual environment that uses a specific version of a package using renv
- restore a virtual environment using renv
- explore the history of a virtual environment using renv

Key Points

  • Virtual environments help programmers to manage the packages installed in their workspace.
  • In R, you can use the renv package to control the packages that are included in your environment.