mycsg.in
SAS
SASnR
Clinical Programming
CRFs
SDTM
ADaM
TFL
Tasks
Macros
QnA
Certification
Resources
Disclaimer
Contact Us
Training
Sign Up
Login
Online training class for Clinical R programming batch starts on Monday, 02Feb2026.
Click here for details
.
Install an R package
Lesson Description
-
Base R refers to the core functions and features that come pre-installed with R
While powerful and self-sufficient, Base R can be extended with packages to improve efficiency and readability
An R package is an extension of Base R that provides additional functions to enhance R's capabilities
Think of it as an add-on that simplifies or extends what R can do
Functions: Predefined blocks of code that perform specific tasks
e.g., filter() in dplyr, ggplot() in ggplot2
Datasets: Built-in datasets that can be used for learning or testing
e.g., iris, mtcars
Documentation: Help files and snippets to explain how to use the functions and datasets
DESCRIPTION file: Metadata about the package — title, version, dependencies, author, etc.
Below is the line of code that helps installing packages into our R environment
R
(tidyverse)
Copy
+
install.packages("tidyverse")
R
(base)
Copy
+
install.packages("tidyverse")
install.packages("tidyverse") downloads and installs the package from CRAN.
Use quotes for the package name; install once per library.