When various applications are split into modules (RHEL/CentOS 
environment-modules package), such that
  module load R proj gdal
is needed to make those applications and their pkg-config files available, the R
  install.packages(‘rgdal’)
fails because it assumes proj and gdal are in the same place, and omits the -L… 
link option for proj’s library path.

An easy workaround until this is fixed is
  export proj_lib_path=`pkg-config proj --libs | awk '{print $1}'`
before you start R, then “install.packages(‘rgdal’)” works as expected.

The author of the package is working on a real fix, so this workaround may not 
be needed for long.

Cheers,
Ric
--
Ric Anderson| Systems Administrator [Description: Description: Description: 
Description: Description: Description: Description: 
http://redbar.web.arizona.edu/logos/images/thumb_pawprints.gif]
Research And Discovery Tech | HPC Large Systems Support
XSEDE Campus Champion
[email protected]<mailto:[email protected]>         (V):  
+1-520-626-1642
[cid:[email protected]]


_______________________________________________
R-sig-Geo mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo

Reply via email to