Update, Remove and Check Installed Packages in R
To check what packages are installed on your computer, type this command:
installed.packages()
To update all the packages, type this command:
update.packages()
To update a specific package, type this command:
install.packages("PACKAGE NAME")
Packages in R Programming
The package is an appropriate way to organize the work and share it with others. Typically, a package will include code (not only R code!), documentation for the package and the functions inside, some tests to check everything works as it should, and data sets.