R Install R Packages Locally To install an R Package, insert the below into a code cell. install.packages("rtweet") Please note that once your container stops and restarts this will reset any change in the environment. Your packages will not persist after a session restart.