[Rcpp-devel] Makevars problem when uploading package

Cedric Ginestet c.ginestet05 at googlemail.com
Wed Apr 6 08:48:55 CEST 2011


Hi guys,

I get the following error message from Kurt Hornik when uploading my 
package to CRAN:
#################################

* installing*source*  package 'NetworkAnalysis' ...
** libs
g++-4.6 -I/home/Hornik/tmp/R/include `Rscript -e 'Rcpp:::CxxFlags()'`  -I/usr/local/include    -fpic  -g -O2 -Wall -pedantic -c class.cpp -o class.o
g++-4.6: error: WARNING:: No such file or directory
g++-4.6: error: ignoring: No such file or directory
g++-4.6: error: environment: No such file or directory
g++-4.6: error: value: No such file or directory
g++-4.6: error: of: No such file or directory
g++-4.6: error: R_HOME: No such file or directory

because your src/Makevars has

PKG_CPPFLAGS=`Rscript -e 'Rcpp:::CxxFlags()'`
PKG_LIBS=`Rscript -e 'Rcpp:::LdFlags()'`

#################################

Yes, I have used the latter src/Makevars file because the use of
PKG_LIBS = `$(R_HOME)/bin/Rscript -e "Rcpp:::LdFlags()"`
does not work on my local machine, and therefore was not expected to 
work externally. I am quite confused as to which route to take, here.

Any help would be greatly appreciated,
-- 
Cedric Ginestet
Centre for Neuroimaging Sciences (L3.04)
NIHR Biomedical Research Centre
Institute of Psychiatry, Box P089
Kings College London
De Crespigny Park
London
SE5 8AF
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20110406/e1e9d618/attachment.htm>


More information about the Rcpp-devel mailing list