Solutions Products Open Source Customers Resources

Package Management in R

Learn the fundamentals of R package management, including what packages, libraries, and repositories are, how different library types work, and how to keep your R environment clean and reproducible.

rate limit

Code not recognized.

Course Objectives

  1. Explain what R packages, libraries, and repositories are and how they relate to each other
  2. Distinguish between system, user, and project-level libraries and describe when each is appropriate
  3. Install packages and load them into an R session using standard R tools
  4. Use renv to manage a project-level library for reproducible, isolated package environments
  5. Apply package management best practices when working in different R environments, including local IDEs and Posit Workbench

Curriculum20 min

  • Foundations
  • Packages, Libraries, and Repositories
  • Types of Libraries in R
  • Core Concepts
  • Tools and Workflows
  • Installing and Managing Packages
  • Project Libraries with renv
  • Package Management
  • Practice
  • Package Management in Action
  • Lab - Package Management in R
  • Next Steps
  • Wrap Up

Course Objectives

  1. Explain what R packages, libraries, and repositories are and how they relate to each other
  2. Distinguish between system, user, and project-level libraries and describe when each is appropriate
  3. Install packages and load them into an R session using standard R tools
  4. Use renv to manage a project-level library for reproducible, isolated package environments
  5. Apply package management best practices when working in different R environments, including local IDEs and Posit Workbench

Curriculum20 min

  • Foundations
  • Packages, Libraries, and Repositories
  • Types of Libraries in R
  • Core Concepts
  • Tools and Workflows
  • Installing and Managing Packages
  • Project Libraries with renv
  • Package Management
  • Practice
  • Package Management in Action
  • Lab - Package Management in R
  • Next Steps
  • Wrap Up