The current version of rgdal on CRAN is 0.6-28, not 0.3-5! The latter
was never in CRAN, but 0.3-7 dates from 2006.
Is your R version (unstated, see the posting guide) also from 2006?
On Sun, 17 Oct 2010, ciccp...@libero.it wrote:
Hi everybody,
I'm trying to install the "rgdal" package in R, but it seems not possible...
i'm typing
install.packages("rgdal")
Warning in install.packages("rgdal") :
argument 'lib' is missing: using '/home/toro/R/i486-pc-linux-gnu-library/2.
9'
--- Please select a CRAN mirror for use in this session ---
Loading Tcl/Tk interface ... done
Warning message:
In getDependencies(pkgs, dependencies, available, lib) :
package ‘rgdal’ is not available
I also tried to download the package from http://sourceforge.
net/projects/rgdal/files/ , and tried
$ R CMD INSTALL /home/toro/Downloads/rgdal_0.3-5.tar.gz
* Installing to library ‘/home/toro/R/i486-pc-linux-gnu-library/2.9’
* Installing *source* package ‘rgdal’ ...
configure: creating ./config.status
config.status: creating src/Makevars
** libs
g++ -I/usr/share/R/include -I/usr/include/gdal -g -DRGDALDEBUG -fpic -g
-
O2 -c gdal-bindings.cpp -o gdal-bindings.o
gdal-bindings.cpp: In function ‘char* asString(SEXPREC*, int)’:
gdal-bindings.cpp:28: error: invalid conversion from ‘const char*’ to ‘char*’
make: *** [gdal-bindings.o] Error 1
ERROR: compilation failed for package ‘rgdal’
* Removing ‘/home/toro/R/i486-pc-linux-gnu-library/2.9/rgdal’
and this happens also for other versions of gdal I have downloaded.
The biggest problem is that also other packages like spgrass6, spGDAL and
spmaptools are dependent from gdal....so i cannot go on....
Can I ask you to help me , please??
Thank you
Matteo
______________________________________________
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.
--
Brian D. Ripley, rip...@stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
______________________________________________
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.