<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    Hi guys, <br>
    <br>
    I get the following error message from Kurt Hornik when uploading my
    package to CRAN:<br>
    #################################<br>
    <pre wrap="">* installing <b class="moz-txt-star"><span class="moz-txt-tag">*</span>source<span class="moz-txt-tag">*</span></b> package &#8216;NetworkAnalysis&#8217; ...
** 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()'` </pre>
    #################################<br>
    <br>
    Yes, I have used the latter src/Makevars file because the use of <br>
    PKG_LIBS = `$(R_HOME)/bin/Rscript -e "Rcpp:::LdFlags()"`<br>
    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. <br>
    <br>
    Any help would be greatly appreciated,
    <div class="moz-signature">-- <br>
      <div class="moz-signature"><font face="Times" size="3">
          Cedric Ginestet <br>
          Centre for Neuroimaging Sciences (L3.04) <br>
          NIHR Biomedical Research Centre <br>
          Institute of Psychiatry, Box P089 <br>
          Kings College London <br>
          De Crespigny Park<br>
          London <br>
          SE5 8AF <br>
        </font>
      </div>
    </div>
  </body>
</html>