<div dir="ltr">Dear all,<div><br></div><div>Dirk - </div><div>I have now re-checked, and the package loads fine on my machine, and it is completely synced with github.</div><div>The only files in my gitignore are:</div><div>

<div>.Rproj.user</div><div>.Rhistory</div><div>.RData</div><div>src/*.o</div><div>src/*.so</div><div>src/*.dll</div></div><div>So I suspect that the versions are indeed the same.<br></div><div><br></div><div>Kevin - thanks.</div>

<div><br></div><div>Romain - </div><div>I am glad you have an idea for what the problem might be. However, I am not sure I understand how to proceed in fixing it.</div><div><br></div><div><br></div><div>Since the package is very minimalistic, any specific examples on what can be improved would be of great help.</div>

<div><br></div><div><br></div><div><br></div><div>Thanks everyone,</div><div>Tal</div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><br>----------------Contact Details:-------------------------------------------------------<br>

Contact me: <a href="mailto:Tal.Galili@gmail.com" target="_blank">Tal.Galili@gmail.com</a> |  <br>Read me: <a href="http://www.talgalili.com" target="_blank">www.talgalili.com</a> (Hebrew) | <a href="http://www.biostatistics.co.il" target="_blank">www.biostatistics.co.il</a> (Hebrew) | <a href="http://www.r-statistics.com" target="_blank">www.r-statistics.com</a> (English)<br>

----------------------------------------------------------------------------------------------<br><br></div></div>
<br><br><div class="gmail_quote">On Mon, Feb 3, 2014 at 9:12 PM, Romain Francois <span dir="ltr"><<a href="mailto:romain@r-enthusiasts.com" target="_blank">romain@r-enthusiasts.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

The problem is likely to be that it was assumed that List derives from RObject.<br>
<br>
It used to, it does not anymore.<br>
<br>
Classes from the api now use a policy based design. See andrei alexandrescu's modern c++ book for the why and the how of policy based design.<br>
<br>
.<br>
<br>
Envoyé de mon iPhone<br>
<br>
Le 3 févr. 2014 à 20:01, Kevin Ushey <<a href="mailto:kevinushey@gmail.com">kevinushey@gmail.com</a>> a écrit :<br>
<div class="HOEnZb"><div class="h5"><br>
> Hi Tal,<br>
><br>
> I get the same error with the new CRAN Rcpp, 0.11.0. I'll try to take<br>
> a look later.<br>
><br>
> -Kevin<br>
><br>
> On Mon, Feb 3, 2014 at 10:32 AM, Tal Galili <<a href="mailto:tal.galili@gmail.com">tal.galili@gmail.com</a>> wrote:<br>
>> Dear Rcpp people,<br>
>><br>
>> I am trying to get a new package to CRAN called {dendextendRcpp}. Here is<br>
>> the repos:<br>
>> <a href="https://github.com/talgalili/dendextendRcpp" target="_blank">https://github.com/talgalili/dendextendRcpp</a><br>
>><br>
>> (note that this package relies on the {dendextend} which has just been<br>
>> released to CRAN today :) )<br>
>><br>
>><br>
>> The package loads fine for me (on R-devel, with Windows 7), however Kurt<br>
>> Hornik (CRAN maintainer) could not get the package to load on Linux.<br>
>> Following is the error massage that he got. Any input (either here or on the<br>
>> git repo) will be most appreciated.<br>
>><br>
>> With regards,<br>
>> Tal<br>
>><br>
>> ========================<br>
>><br>
>> (p.s: I suspect this might be because I use .hpp files in src. Should I use<br>
>> something else?)<br>
>><br>
>><br>
>><br>
>> * installing *source* package 'dendextendRcpp' ...<br>
>> ** libs<br>
>> clang++ -std=c++11 -I/home/Hornik/tmp/R-d-clang/include -DNDEBUG<br>
>> -I/usr/local/include<br>
>> -I"/home/Hornik/lib/R/Library/3.1/x86_64-linux-gnu/Rcpp/include"   -fpic  -g<br>
>> -O3 -Wall -Wno-unused -pedantic -c RcppExports.cpp -o RcppExports.o<br>
>> clang++ -std=c++11 -I/home/Hornik/tmp/R-d-clang/include -DNDEBUG<br>
>> -I/usr/local/include<br>
>> -I"/home/Hornik/lib/R/Library/3.1/x86_64-linux-gnu/Rcpp/include"   -fpic  -g<br>
>> -O3 -Wall -Wno-unused -pedantic -c cut_lower.cpp -o cut_lower.o<br>
>> cut_lower.cpp:35:7: error: no matching function for call to 'get_height'<br>
>>  if(get_height(tree) <= height) {<br>
>>     ^~~~~~~~~~<br>
>> ./get_branches_heights.hpp:29:8: note: candidate function not viable: no<br>
>> known conversion from 'List' (aka 'Vector<19>') to 'RObject' (aka<br>
>> 'RObject_Impl<PreserveStorage>') for 1st argument<br>
>> double get_height(RObject x);<br>
>>      ^<br>
>> cut_lower.cpp:36:13: error: no matching member function for call to<br>
>> 'push_back'<br>
>>     lower.push_back(tree);<br>
>>     ~~~~~~^~~~~~~~~<br>
>> /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/bits/stl_vector.h:901:7:<br>
>> note: candidate function not viable: no known conversion from 'List' (aka<br>
>> 'Vector<19>') to 'const value_type' (aka 'const<br>
>> Rcpp::RObject_Impl<PreserveStorage>') for 1st argument<br>
>>     push_back(const value_type& __x)<br>
>>     ^<br>
>> /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/bits/stl_vector.h:919:7:<br>
>> note: candidate function not viable: no known conversion from 'List' (aka<br>
>> 'Vector<19>') to 'value_type' (aka 'Rcpp::RObject_Impl<PreserveStorage>')<br>
>> for 1st argument<br>
>>     push_back(value_type&& __x)<br>
>>     ^<br>
>> cut_lower.cpp:84:7: error: no matching function for call to 'is_leaf'<br>
>>  if(is_leaf( tree )) {<br>
>>     ^~~~~~~<br>
>> ./is_functions.hpp:35:6: note: candidate function not viable: no known<br>
>> conversion from 'List' (aka 'Vector<19>') to 'RObject' (aka<br>
>> 'RObject_Impl<PreserveStorage>') for 1st argument<br>
>> bool is_leaf(RObject x);<br>
>>    ^<br>
>> 3 errors generated.<br>
>> make: *** [cut_lower.o] Error 1<br>
>> clang++ -std=c++11 -I/home/Hornik/tmp/R-d-clang/include -DNDEBUG<br>
>> -I/usr/local/include<br>
>> -I"/home/Hornik/lib/R/Library/3.1/x86_64-linux-gnu/Rcpp/include"   -fpic  -g<br>
>> -O3 -Wall -Wno-unused -pedantic -c cut_lower.cpp -o cut_lower.o<br>
>> cut_lower.cpp:35:7: error: no matching function for call to 'get_height'<br>
>>  if(get_height(tree) <= height) {<br>
>>     ^~~~~~~~~~<br>
>> ./get_branches_heights.hpp:29:8: note: candidate function not viable: no<br>
>> known conversion from 'List' (aka 'Vector<19>') to 'RObject' (aka<br>
>> 'RObject_Impl<PreserveStorage>') for 1st argument<br>
>> double get_height(RObject x);<br>
>>      ^<br>
>> cut_lower.cpp:36:13: error: no matching member function for call to<br>
>> 'push_back'<br>
>>     lower.push_back(tree);<br>
>>     ~~~~~~^~~~~~~~~<br>
>> /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/bits/stl_vector.h:901:7:<br>
>> note: candidate function not viable: no known conversion from 'List' (aka<br>
>> 'Vector<19>') to 'const value_type' (aka 'const<br>
>> Rcpp::RObject_Impl<PreserveStorage>') for 1st argument<br>
>>     push_back(const value_type& __x)<br>
>>     ^<br>
>> /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/bits/stl_vector.h:919:7:<br>
>> note: candidate function not viable: no known conversion from 'List' (aka<br>
>> 'Vector<19>') to 'value_type' (aka 'Rcpp::RObject_Impl<PreserveStorage>')<br>
>> for 1st argument<br>
>>     push_back(value_type&& __x)<br>
>>     ^<br>
>> cut_lower.cpp:84:7: error: no matching function for call to 'is_leaf'<br>
>>  if(is_leaf( tree )) {<br>
>>     ^~~~~~~<br>
>> ./is_functions.hpp:35:6: note: candidate function not viable: no known<br>
>> conversion from 'List' (aka 'Vector<19>') to 'RObject' (aka<br>
>> 'RObject_Impl<PreserveStorage>') for 1st argument<br>
>> bool is_leaf(RObject x);<br>
>>    ^<br>
>> 3 errors generated.<br>
>> make: *** [cut_lower.o] Error 1<br>
>> ERROR: compilation failed for package 'dendextendRcpp'<br>
>> * removing '/home/Hornik/tmp/CRAN/dendextendRcpp.Rcheck/dendextendRcpp'<br>
>><br>
>><br>
>> _______________________________________________<br>
>> Rcpp-devel mailing list<br>
>> <a href="mailto:Rcpp-devel@lists.r-forge.r-project.org">Rcpp-devel@lists.r-forge.r-project.org</a><br>
>> <a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel</a><br>
> _______________________________________________<br>
> Rcpp-devel mailing list<br>
> <a href="mailto:Rcpp-devel@lists.r-forge.r-project.org">Rcpp-devel@lists.r-forge.r-project.org</a><br>
> <a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel</a><br>
</div></div></blockquote></div><br></div>