<div dir="ltr"><div><div><div><div>Hi Henrik,<br></div>There seems to be a similar problem here in my package, reported by <a href="https://github.com/yixuan/rARPACK/issues/4">https://github.com/yixuan/rARPACK/issues/4</a>.<br></div>The reporter said that the runtime error occured when using RStudio, but disappeared in RGui. Is this the same situation as yours?<br><br><br></div>Best,<br></div>Yixuan<br></div><div class="gmail_extra"><br><div class="gmail_quote">2014-10-15 14:59 GMT-04:00 Henrik Singmann <span dir="ltr"><<a href="mailto:henrik.singmann@psychologie.uni-freiburg.de" target="_blank">henrik.singmann@psychologie.uni-freiburg.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear list,<br>
<br>
I have the following weird problem and would be really glad for any input:<br>
<br>
The windows binary from CRAN for my package MPTinR, which uses RcppEigen, leads to an "Assertion failed" error which crashes R with a simple example given below (which unfortunately is not part of the examples and henceforth not tested by CRAN).<br>
<br>
Interestingly enough, the problem disappears when installing the package on Windows from source or when using Linux (Ubuntu). But it also appears when using a binary version of MPTinR from winbuilder (temporarily available here: <a href="http://win-builder.r-project.org/h18PJ7B55VAq" target="_blank">http://win-builder.r-project.<u></u>org/h18PJ7B55VAq</a>), R-devel and corresponding binary from CRAN, and I could replicate the error on a range of different Windows machines. The error also always disappears when installing from source. I am also extremely confident that this problem didn't exist in the past, I and others have used this functionality regularly with the CRAN windows binary.<br>
<br>
###### code starts #######<br>
require(MPTinR)<br>
data(d.broeder)<br>
m.2htm <- system.file("extdata", "5points.2htm.model", package = "MPTinR")<br>
get.mpt.fia(d.broeder, m.2htm)<br>
###### code ends #######<br>
<br>
The complete error message is:<br>
<br>
###### error message starts #######<br>
Assertion failed!<br>
<br>
Program: C:\Program Files\RStudio\bin\x64\<u></u>rsession.exe<br>
File: d:/RCompile/CRANpkg/lib/3.1/<u></u>RcppEigen/include/Eigen/src/<u></u>Core/ProductBase.h, Line 95<br>
<br>
Expression: a_lhs.cols() == a_rhs.rows() && "invalid matrix product" && "if you wanted a coeff-wise or a dot product use the respective explicit functions"<br>
<br>
This application has requested the Runtime to terminate it in an unusual way.<br>
Please contact the application's support team for more information.<br>
###### error message ends #######<br>
<br>
When adding such an example to the code and resubmitting it to winbuilder it now also crashes, see <a href="http://win-builder.r-project.org/0ei38q0t48h2/00check.log" target="_blank">http://win-builder.r-project.<u></u>org/0ei38q0t48h2/00check.log</a><br>
But again, when installing the same package on my machine from source it works.<br>
<br>
Best,<br>
Henrik<br>
<br>
PS: A session info (without attaching MPTinR) is given below:<br>
<br>
R version 3.1.1 (2014-07-10)<br>
Platform: x86_64-w64-mingw32/x64 (64-bit)<br>
<br>
locale:<br>
[1] LC_COLLATE=German_Switzerland.<u></u>1252  LC_CTYPE=German_Switzerland.<u></u>1252    LC_MONETARY=German_<u></u>Switzerland.1252<br>
[4] LC_NUMERIC=C                        LC_TIME=German_Switzerland.<u></u>1252<br>
<br>
attached base packages:<br>
[1] stats     graphics  grDevices utils     datasets  methods   base<br>
<br>
other attached packages:<br>
[1] devtools_1.6<br>
<br>
loaded via a namespace (and not attached):<br>
[1] fortunes_1.5-2 tools_3.1.1<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
<br>
-- <br>
Dr. Henrik Singmann<br>
Universität Zürich, Schweiz<br>
<a href="http://singmann.org" target="_blank">http://singmann.org</a><br>
______________________________<u></u>_________________<br>
Rcpp-devel mailing list<br>
<a href="mailto:Rcpp-devel@lists.r-forge.r-project.org" target="_blank">Rcpp-devel@lists.r-forge.r-<u></u>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-<u></u>project.org/cgi-bin/mailman/<u></u>listinfo/rcpp-devel</a></font></span></blockquote></div><br><br clear="all"><br>-- <br>Yixuan Qiu <<a href="mailto:yixuan.qiu@cos.name" target="_blank">yixuan.qiu@cos.name</a>><br>Department of Statistics,<br>Purdue University<br>
</div>