R is an interpreter instead of compiled language. Installing R Packages and Loading R Libraries are required first steps since R software only comes with base R installed. Only minimum R tasks can be performed with base R. R Studio is powerful user interface to access objects and data frames.
# Two options to install R packages
install.packages("gtsummary") # install from CRAN through RStudio
remotes::install_github("ddsjoberg/gtsummary") # install directly from github, ideal to install older versions
if(!require('data.table')) {
source(file = 'C:/my_Rproject/startup.R') # load packages instead of in each R script
install.packages("ggplot2") # Install & load ggplot2 package
Install R Packages and Load Libraries Exercises (Next Section)
How to import data and install packages [You Tube]
R Studio Server Setup: Virtual Private Server [You Tube]
How do I select an R package for my clinical workflow? Sean Lopp & Phil Bowsher [Common FAQs]
Installing Base-R and RStudio [YaRrr!]
R Studio Cloud Setup - New Account, Blog, Videos, Guide, Verify, Project Template
GitHub Validation Scripts: R-IQ-OQ, R-IQ-OQ-PQ, Test Plan [Installation Qualification, Operational Qualification, Performance Qualification]
SAS® 9.4 Installation Qualification Guide [Reference]
Setting up the R environmentR Packages: A Beginner's Tutorial
Difference between R-base and R-recommended packages
Unable to load packages after updating R to 4.3 [Posit Blog]
Load Packages Automatically in RStudio
> file.edit("~/Desktop/foo/.Rprofile") # This opens up a script window, within which you can enter in your library commands library(ggplot2) library(scales) library(plyr) library(reshape2)
An efficient way to install and load R packages