Friday, March 18, 2011

Installing ncdf in R

This worked for me, at the command line.

$sudo R CMD INSTALL --configure-args="--with-netcdf-include=/usr/include/" Downloads/ncdf_1.6.5.tar.gz

Then, at command line, $sudo R
>install.packages()  a pop up appears from which I choose the nearest CRAN mirror. Then I choose clim.pact

Now, back to clim.pact

Run R as normal user (no sudo)
> library(clim.pact)
Loading required package: ncdf
Loading required package: akima

Ok, so far so good.

If clim.pact is having problems, install locally as:
sudo R CMD INSTALL  /Downloads/clim.pact_2.3-7.tar.gz

No comments:

Post a Comment