Re: [Rcpp-devel] Compiling issue about Rcpp

2014-04-18 Thread Ian Fellows
wrote: > > On 18 April 2014 at 09:12, Ian Fellows wrote: > | Looks like the same problem described here in > http://stackoverflow.com/questions/15489065/rcppeclipse-on-mac-os-x/15532241#15532241 > due to Rcpp having a file named string.h which can conflict with std. > | > |

Re: [Rcpp-devel] Compiling issue about Rcpp

2014-04-18 Thread Ian Fellows
Looks like the same problem described here in http://stackoverflow.com/questions/15489065/rcppeclipse-on-mac-os-x/15532241#15532241 due to Rcpp having a file named string.h which can conflict with std. Perhaps try using the -idirafter directive? Best, Ian On Apr 18, 2014, at 3:00 AM, wrote

Re: [Rcpp-devel] Compiling issue about Rcpp

2014-04-18 Thread Ian Fellows
Looks like the same problem described here in http://stackoverflow.com/questions/15489065/rcppeclipse-on-mac-os-x/15532241#15532241 due to Rcpp having a file named string.h which can conflict with std. Perhaps try using the -idirafter directive? Best, Ian On Apr 18, 2014, at 3:00 AM, wrote

Re: [Rcpp-devel] Rcpp 0.11.0 Module error

2014-03-03 Thread Ian Fellows
> > Thanks, > Kevin > > On Mon, Mar 3, 2014 at 11:42 AM, Ian Fellows > wrote: >> Hi All, >> >> I'm attempting to update my package for use with Rcpp 0.11.0 and have run >> into an unexpected error. The error message (see below) is somewhat opaqu

[Rcpp-devel] Rcpp 0.11.0 Module error

2014-03-03 Thread Ian Fellows
Hi All, I'm attempting to update my package for use with Rcpp 0.11.0 and have run into an unexpected error. The error message (see below) is somewhat opaque to me, and the module statements worked fine with the previous version of Rcpp. Can anyone provide a bit of guidance on how to fix it? The

Re: [Rcpp-devel] inline plug-in linking

2012-11-17 Thread Ian Fellows
Thanks for the help. I just thought I should report back with the solution to my issues for posterity. It seems that the header only interface is the way to go for my purposes because I only have a few data structures which need to be shared across compilation units, and almost all of the code

[Rcpp-devel] inline plug-in linking

2012-11-16 Thread Ian Fellows
Hi All, I'm attempting to get inline up and running for my package, but am having some trouble. My plug in statement is: inlineErnmPlugin <- Rcpp:::Rcpp.plugin.maker( include.before = "#include ", libs = "", package= "ernm" ) T

Re: [Rcpp-devel] Rcpp 0.10.0

2012-11-14 Thread Ian Fellows
So,… um… Wow! This is some pretty incredible work, and lines up almost to the letter with the real world issues that I was experiencing with my package. Reading over the vignette, a couple of questions popped into my head. With the //Rcpp::interfaces(cpp) declaration 1. Are classes also export

Re: [Rcpp-devel] inline and namespace loading issues for new package

2012-11-10 Thread Ian Fellows
Dirk, > > Quick guess: Maybe force load / import of package 'methods' ? > > More on the other questions in a few days. Let's take them one by one. I had already added methods to the namespace via import in the NAMESPACE file, and added it to the depends in the DESCRIPTION file. I just tried

[Rcpp-devel] inline and namespace loading issues for new package

2012-11-10 Thread Ian Fellows
Hi All, I've been working on an Rcpp based package (for the better part of a year and a half now), and have a few issues that I was hoping I could get some help with. As a bit of background, this package fits (via MCMC-MLE) exponential family random graph models (ergm), markov random field mode

Re: [Rcpp-devel] Eclipse/statet IDE integration

2012-09-11 Thread Ian Fellows
> > On 04/09/2012 02:07 AM, Ian Fellows wrote: >> Hi All, >> >> So way back in the summer I figured out how to integrate Rcpp/RInside >> into Eclipses build system allowing for things like code completion / >> error checking work. I've been meaning to ma

Re: [Rcpp-devel] Eclipse/statet IDE integration

2012-04-09 Thread Ian Fellows
On Apr 9, 2012, at 7:41 AM, Dirk Eddelbuettel wrote: > > Hi Ian, > > On 9 April 2012 at 00:07, Ian Fellows wrote: > | Hi All, > | > | So way back in the summer I figured out how to integrate Rcpp/RInside into > | Eclipses build system allowing for things like

[Rcpp-devel] Eclipse/statet IDE integration

2012-04-09 Thread Ian Fellows
Hi All, So way back in the summer I figured out how to integrate Rcpp/RInside into Eclipses build system allowing for things like code completion / error checking work. I've been meaning to make some sort of public guide, but have not gotten around to it until today. I thought that some on the

Re: [Rcpp-devel] rcpp_modules: Passing object pointer back to C++

2012-01-23 Thread Ian Fellows
I've been using the strategy I outlined last month ( http://lists.r-forge.r-project.org/pipermail/rcpp-devel/2011-December/003226.html ) for some time now. It is pretty similar to Jelmer's, but makes sure that R owns the object when a C++ class wrapped into an S4 class. Note that the copy const

Re: [Rcpp-devel] c++ class as argument in rcpp function (using modules)

2011-12-23 Thread ian . fellows
I suppose that I will share my solution to this issue. I have two utility functions: using namespace Rcpp; template XPtr unwrap_robject(const SEXP& sexp){ RObject ro(sexp); if(ro.isObject()){ Language call("as.environment",sexp); SEXP ev = call.eva

Re: [Rcpp-devel] Compiler seg fault with Rcpp 0.9.7

2011-10-05 Thread Ian Fellows
> Hi Ian, > > On Wed, Oct 5, 2011 at 2:32 PM, Ian Fellows wrote: >> Hi All, >> >> I am getting a compiler seg fault with 0.9.6 and 0.9.7, however the error >> does not occur in 0.9.4. >> >> When running R CMD INSTALL the following error is given:

[Rcpp-devel] Compiler seg fault with Rcpp 0.9.7

2011-10-05 Thread Ian Fellows
Hi All, I am getting a compiler seg fault with 0.9.6 and 0.9.7, however the error does not occur in 0.9.4. When running R CMD INSTALL the following error is given: util.h: In function 'Rcpp::XPtr > gergm::unwrap_robject(SEXPREC* const&) [with T = gergm::BinaryNet]': util.h:30: internal compil

Re: [Rcpp-devel] wordcloud

2011-07-23 Thread ian . fellows
> > On 23 July 2011 at 09:02, ian.fell...@stat.ucla.edu wrote: > | Hi all, > | > | I've just released an R package to CRAN that creates pretty looking word | clouds. I think it makes a good minimal example of how to prototype an | algorithm in R, and then bring the performance bottleneck down to c+

[Rcpp-devel] wordcloud

2011-07-23 Thread ian . fellows
Hi all, I've just released an R package to CRAN that creates pretty looking word clouds. I think it makes a good minimal example of how to prototype an algorithm in R, and then bring the performance bottleneck down to c++ to improve speed. An example: >install.packages("wordcloud",repos="http:/

[Rcpp-devel] getting the external pointer from a module created reference class

2011-06-27 Thread Ian Fellows
Okay, so at the risk of asking another stupid question... I'm a bit unclear about how to write the R constructor for a class being exported via the module facility. class Foo{ public: int i; Foo(); Foo(SEXP); } int test(Foo f){

[Rcpp-devel] Templates failing to specialize

2011-06-27 Thread Ian Fellows
Hi, I have am having trouble using template classes in rcpp. The compiling process works just fine, but there are errors on link. It seems as if the methods are not getting specialized. The Error: ** testing if installed package can be loaded Error in dyn.load(file, DLLpath = DLLpath, ...) :