R Package Installation and onboarding

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.