Installation of the R package and installation of the Load R language Pack
R comes with a series of default packages, including base, datasets, Utils, grdevices, graphics, stats
As well as methods, they provide a wide variety of default functions and Datasets. Other packages can be downloaded for installation.
Method One: Through the install.packages command
Install. Packages ("Package_name")# installation PackageInstall. Packages (C ("Package_name1","Package_name2","Package_name3"))# Install multiple packages at onceUpdate.packages ()# Update an installed packageInstalled.packages ()# List all installed packagesAvailable.packages ()# Get all available packages on the Cran mirror site
Method Two: Through the menu bar Tools-->install Packages, enter the package name can
Method Three: Through the lower right corner of the packages installation
Package onboarding
library("package_name") # 载入包search() # 列出已加载并可以使用的包
remark: 1. The installed package must be included in the session before it can be used;
2. This package must already be installed before a package is loaded;
3. In one session, the package only needs to be loaded once;
4. It is recommended to customize the boot environment (modify the Rprofile.site file) to automatically load those packages that are frequently used.
R Package Installation and onboarding