To install packages in R, you can use the install.packages() function. For example, to install the popular "ggplot2" package, you would run install.packages("ggplot2") in the R console. Once installed, you can load a package into your session using the library() function.