inst/installme_indiclima.R

##PKG_CPPFLAGS=-I/path/to/netcdf/header
##PKG_LIBS=-L/path/to/netcdf/lib -lnetcdf

local <- "/home/ecor/local"
PKG_CPPFLAGS <- ""#paste("-I",local,"/include",sep="")
PKG_LIBS <- paste(paste("-L",local,"/lib",sep=""),"-lnetcdf -lhdf5_hl -lhdf5 -lz",sep=" ")

Sys.setenv(PKG_CPPFLAGS=PKG_CPPFLAGS,PKG_LIBS=PKG_LIBS)
###http://mazamascience.com/WorkingWithData/?p=1429ghjtre
configure.args <- paste(PKG_CPPFLAGS,PKG_LIBS,sep=" ")
configure.args <- "--with-nc-config=/home/ecor/local/bin/nc-config"
install.packages("ncdf4",configure.args=configure.args)
ecor/ncdf4df documentation built on May 15, 2019, 10:06 p.m.