Installing R Packages over proxy authentication


If you are running behind the proxy sever and you need to install the R packages ex : Bioconductor packages  first you need to set the proxy environment on the terminal using the command like given below :

export http_proxy= proxy_user_name : proxy_usesr’s_password @ Proxy_IP_Address:Proxy_Port_no.

example :

$export http_proxy=user:password@192.166.100.100:8080

type bash and enter to set the proxy.

similarly you can export ftp_proxy , https_proxy  if needed otherwise http_proxy is enough to set.

Installing from the Linux Terminal :

Start R Terminal by pressing R and enter key.

>source("http://bioconductor.org/biocLite.R") 
>biocLite("package_name") 

or 

>install.packages("package_name",dependencies=TRUE) 

Installing from archive(tar.gz)  :

First download the package(tar.gz) from Bioconductor or CRAN(http://cran.r-project.org/).

The go to the download place from terminal and then type:

$R CMD INSTALL tar.gz_package

Advertisements

About Vaibhav

Friendly & Co-operative.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: