<div dir="ltr">Finally I caught this issue. My bad - I used `.property` instead of `.method` in RCPP_MODULE macro for function call (forgot to adjust it when changed underlying c++ code).<br><div class="gmail_extra"><br><div class="gmail_quote">2015-10-22 11:01 GMT+03:00 Dmitriy Selivanov <span dir="ltr"><<a href="mailto:selivanov.dmitriy@gmail.com" target="_blank">selivanov.dmitriy@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi, mailing list! <div>I have issue  with  Rcpp modules on <b>windows only</b> (don't have any problems on linux and osx ). Don't really sure, whether it rcpp-modules related. Problem is following - when I try to get class to global environment - R crashes (actually freezes - cpu core load 100% and nothing happens).<div>I'm developing package for text analysis and vectorization - <a href="https://github.com/dselivanov/text2vec" target="_blank">text2vec</a>. Here, for example, I have <a href="https://github.com/dselivanov/text2vec/blob/master/src/Corpus.cpp#L343-L366" target="_blank">two classes</a>, which I expose using Rcc-modules. Very similar to RcppAnnoy (I used it as example for rcpp-modules).</div><div>Now consider following <a href="https://gist.github.com/dselivanov/ffb535ab1447956bb10f" target="_blank">example</a>:</div><div>```R</div><div><font face="monospace, monospace">library(devtools)</font></div><div><font face="monospace, monospace">library(magrittr)</font></div><div><div><font face="monospace, monospace">install_github("dselivanov/text2vec")</font></div><div><font face="monospace, monospace">data("movie_review")</font></div><div><font face="monospace, monospace"># this works fine:</font></div><div><div><font face="monospace, monospace">dtm <- create_dict_corpus(src = movie_review[['review']][1:100],</font></div><div><font face="monospace, monospace">                   preprocess_fun = tolower,</font></div><div><font face="monospace, monospace">                   tokenizer = regexp_tokenizer,</font></div><div><font face="monospace, monospace">                   batch_size = 100,</font></div><div><font face="monospace, monospace">                   progress = F) %>% </font></div><div><font face="monospace, monospace">  get_dtm(corpus = corp, type = "dgCMatrix")</font></div><div><font face="monospace, monospace">dim(dtm)</font></div></div><div><font face="monospace, monospace">#but this crashes:</font></div><div><div><font face="monospace, monospace">corp <- create_dict_corpus(src = movie_review[['review']][1:100],</font></div><div><font face="monospace, monospace">                   preprocess_fun = tolower,</font></div><div><font face="monospace, monospace">                   tokenizer = regexp_tokenizer,</font></div><div><font face="monospace, monospace">                   batch_size = 100,</font></div><div><font face="monospace, monospace">                   progress = F)</font></div></div><div><font face="monospace, monospace">str(corp)</font></div><div>```</div><div><br></div><div>Any thoughts?</div><span class=""><font color="#888888"><div><br></div>-- <br><div><div dir="ltr">Regards <div>Dmitriy Selivanov</div></div></div>
</font></span></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Regards <div>Dmitriy Selivanov</div></div></div>
</div></div>