R Language Installation Package

Source: Internet
Author: User
Tags gz file

How to install the R language package:

1. Automatic installation (online installation)

In the R console, enter

Install.packages ("Gridextra") # Installation Gridextra

install.packages ("Stepnorm", contriburl= "Http://www.your.url", dependencies = TRUE) # Install Stepnorm

To specify the installation directory (e.g. "Mydir"), enter

install.packages ("Stepnorm", contriburl= "Http://www.biostat.ucsf.edu/jean/software", lib= "Mydir")

This method may not be able to find the required package, so you can use Method 2

2. Manual installation (offline installation)

Windows:

Download Package.zip file

Open the menu bar of R->packages-> "Install package from local zip file ..."

Select Package.zip File

Install R package on Linux (offline installation):

Download package.tar.gz file

In the shell terminal (note not r) input:

sudo R CMD INSTALL package.tar.gz

Note : Sudo permissions are required to install. otherwise prompt:

Username is not in the sudoers file. This incident would be reported.

To view all installed R packages:

. Packages (All.available=t)

To view an installed R package:

Library ("XML")
Help (package= "XML")

R Language Installation Package

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.