How to insatll clim.pact inside R path in Ubuntu

Dear All,

To install clim.pact packages inside our R path follow the below steps.

Step 0 : Install R
********************
Download latest R source tar ball from http://cran.r-project.org/sources.html and extract it.

Then go inside to that directory and run the following three commands as root or sudo user.

$ ./configure
$ make
$ sudo make install

Step 1 : Install Dependencies
**********************************

We need "ncdf" & "akima" additional packages to be installed inside R.

To install ncdf correctly we need to install the following packages in our machine.

In Ubuntu follow the below step.

$ apt-get install libnetcdf-dev udunits-bin libudunits2-dev

Then type R command in terminal

$ R
> install.packages(‘akima’)

> install.packages(‘ncdf’)

Choose any one of the country to select mirror and download, install the corresponding packages inside R.

Step 2 : Install clim.pact package inside R

***************************************************

Download latest ‘clim.pact’ tar ball from http://cran.r-project.org/src/contrib/Archive/clim.pact/

Then go to the downloaded directory in terminal then issue the following command.

$ sudo R CMD INSTALL clim.pact_2.3-10.tar.gz

or

$ su
# R CMD INSTALL clim.pact_2.3-10.tar.gz

Thats it. We installed clim.pact package successfully inside our R path.

Note : In the file name specify the downloaded version clim.pack_version.tar.gz

Step 3 : Test
***************
Go to R shell command and load ‘clim.pact’ package as follows.

$ R
> library(clim.pact)
Loading required package: ncdf
Loading required package: akima

Enjoy !

Regards,
Arulalan.T,
Project Associate,
Centre for Atmospheric Sciences,
Indian Institute of Technology Delhi.

Advertisements

About arulalant

Currently working as "Project Scientist – C" in National Centre for Medium Range Weather Forecasting (NCMRWF), MoES, Noida, India
This entry was posted in Uncategorized and tagged , , . Bookmark the permalink.

3 Responses to How to insatll clim.pact inside R path in Ubuntu

  1. Elif YILMAZ says:

    Dear Mr. Arulan T. How can I open datafiles.rar in Windows? Could you explain its way? I have meteorological data from ncep fnl. But, I Could _not open yet. It is important for my thesis and project. Thank you. Regards Elif Ylmaz Anadolu niversity _______________________________________ Gnderen: Tux Coder [comment-reply@wordess.com] Gnderildi: 21 ubat 2014 Cuma 09:54 Kime: Elif YILMAZ Konu: [New post] How to insatll clim.pact inside R path in Ubuntu

    arulalant posted: “Dear All, To install clim.pact packages inside our R path follow the below steps. Step 0 : Install R ******************** Download latest R source tar ball from http://cran.r-project.org/sources.html and extract it. Then go inside to that directory and”

    Like

  2. tshrinivasan says:

    Good post 🙂

    Keep blogging.

    Like

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s