<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Hi again, <br>
<br>
Could this be due to the fact that the versions of R and C++ on the
server where I wish to install the R package are slightly outdated?
On the target server, they are as follows:<br>
R 2.12.0<br>
g++ 4.1.2<br>
<br>
whereas on the machine where a successful installation of the same
package is running, I have <br>
R 2.12.2
<br>
g++ 4.5.2
<br>
<br>
Thank you very much, <br>
Cedric <br>
<br>
On 19/07/11 16:21, Cedric Ginestet wrote:
<blockquote cite="mid:4E25A113.5030405@googlemail.com" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
Hi Rcpp Experts,<br>
<br>
I have tried to install an Rcpp-based package onto a Linux server.
While the package compiles and install fine on my machine, I don't
seem to be able to install it on that server:<br>
</blockquote>
<br>
After R CMD INSTALL package<br>
<blockquote cite="mid:4E25A113.5030405@googlemail.com" type="cite">
########################<br>
g++ -I/share/apps/R_2.12.0/lib64/R/include -I/usr/local/include
-I"/home/cginestetbrc/R/x86_64-unknown-linux-gnu-library/2.12//Rcpp/include"
-fpic -g -O2 -c common.cpp -o common.o<br>
/home/cginestetbrc/R/x86_64-unknown-linux-gnu-library/2.12//Rcpp/include/Rcpp/vector/Vector.h:
In member function 'void
Rcpp::Vector<RTYPE>::assign_object(const T&,
Rcpp::traits::true_type) [with T =
Rcpp::sugar::Vectorized<floor, true, Rcpp::Vector<14>
>, int RTYPE = 13]':<br>
/home/cginestetbrc/R/x86_64-unknown-linux-gnu-library/2.12//Rcpp/include/Rcpp/vector/Vector.h:68:
instantiated from 'Rcpp::Vector<RTYPE>&
Rcpp::Vector<RTYPE>::operator=(const T&) [with T =
Rcpp::sugar::Vectorized<floor, true, Rcpp::Vector<14>
>, int RTYPE = 13]'<br>
common.cpp:14: instantiated from here<br>
#########################<br>
<br>
where the function in common.cpp is as follows (line 14 is the
line where the floor function is used):<br>
#########################<br>
IntegerVector disUnif(int n, int a, int b){<br>
IntegerVector vec(n); <br>
vec = floor(runif(n,a,b+1)); <br>
return vec;<br>
}//disUnif<br>
#########################<br>
<br>
Any ideas on what I am missing? <br>
<br>
Thanks for your help,<br>
Cedric<br>
<br>
<div class="moz-signature">-- <br>
<div class="moz-signature"><font face="Times" size="3"> Cedric
Ginestet, PhD <br>
Centre for Neuroimaging Sciences (L3.04) <br>
NIHR Biomedical Research Centre <br>
Department of Neuroimaging <br>
Institute of Psychiatry, Box P089 <br>
King's College London <br>
De Crespigny Park<br>
London <br>
SE5 8AF <br>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://www.kcl.ac.uk/iop/depts/neuroimaging/people/Ginestet,Cedric.aspx">http://www.kcl.ac.uk/iop/depts/neuroimaging/people/Ginestet,Cedric.aspx</a><br>
</font> </div>
</div>
</blockquote>
</body>
</html>