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