Hi,

Check out the FAQ on the home page about installing packages.

You need to
1. Install the package from a local mirror, you can do this from the drop down menu ("Install packages")
2. then call the package using "library(name of the package)"

It helps to know where your R library directory is on your computer.

HTH Simon.


----- Original Message ----- From: "Bala subramanian" <bala.biophys...@gmail.com>
To: <r-help@r-project.org>
Sent: Tuesday, April 21, 2009 9:34 AM
Subject: [R] joined R-today


Friends,

I am a newbie to R. Just installed and started with R. I installed netcdf
library (netcdf-4.0.tar.gz) and then ncdf package of R from CRAN with the
following command.

R CMD INSTALL
--configure-args="-with-netcdf_incdir=/usr/local/netcdf/include
-with-netcdf_libdir=/usr/local/netcdf/lib" ncdf_1.6.tar.gz

The installation was successful. But when i try to use ncdf inside R, i get
the following error. Kindly help me how to resolve the problem.

trjfile<-system.file('test.netcdf',package='bio3d')
trj<-read.ncdf(trjfile)
Loading required package: ncdf
Error in dyn.load(file, DLLpath = DLLpath, ...) :
 unable to load shared library '/usr/lib/R/library/ncdf/libs/ncdf.so':
 /usr/lib/R/library/ncdf/libs/ncdf.so: cannot restore segment prot after
reloc: Permission denied
Error in read.ncdf(trjfile) : Please install the ncdf package from CRAN

Thanks in advance,
Bala

[[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to