How to install R packages? - AILUN

stizzahaddockΛογισμικό & κατασκευή λογ/κού

14 Δεκ 2013 (πριν από 7 χρόνια και 10 μήνες)

378 εμφανίσεις


Installing R packages





AILUN server will provide Web services for each of the Web application on
AILUN server. For consuming web services using R you will need to install SSOAP
and RCurl packages. These two libraries calls Web services based
on SOAP protocol.
The details can be found here.
http://www.omegahat.org/SSOAP/
.



Steps to Install R packages.

1) Windows Environment


1)

If you have already installed R then proceed with step number 2
or

to i
nstall R
use
http://cran.r
-
project.org/doc/manuals/R
-
admin.html

.

2)

For consuming web service you need to install RCurl and SSOAP packages. Use
following steps to install these packages.

3)

Clic
k on “Packages” menu and “Select Repositories” option.



4)

Select all the repositories and click on “OK” button.




5)

Select nearest Mirror for session.




6)

Then select RCurl and SSOAP package using ctrl button and click on the “OK”
button.




7)

This will
install SSOAP and RCurl
.


2) Linux Environment


1)

If you have already installed R then go ahead with step number 2
or

you to install
R use
http://cran.r
-
project.org/doc/manuals/R
-
admin.html

.

2)

For consuming web service you need to install RCurl and SSOAP packages. Use
following steps to install these packages.

3)

Use following commands.

a.

setRepositories()

i.

This will show a GUI similar to one mentioned above in Windows
section under Select repositori
es.

ii.

Select all repositories.


b.

install.packages(“RCurl”)

c.

install.packages(“SSOAP”)

d.

Select mirror for session.


4)


This will install SSOAP and RCurl.