[ESS-bugs] ESS locks up Emacs?
Rodney Sparapani
rsparapa at mcw.edu
Thu Mar 7 22:18:52 CET 2013
On 03/07/2013 02:25 PM, Rodney Sparapani wrote:
> I am not sure if this is an ESS issue or not. Can someone try to
> replicate this lockup? This is 100% reproducible here.
>
> I have an R file erase.R open:
>
> require(inline)
> require(RcppEigen)
>
> erase <- cxxfunction(signature(arg1="numeric", arg2="integer"),
> body='// erase the b-th row of a matrix
> MatrixXd A=as< Map<MatrixXd> >(arg1), C=A;
>
> const int b=as<int>(arg2), n=A.rows();
>
> C.conservativeResize(n-1, A.cols());
>
> for(int i=b; i<n; ++i) C.row(i)=A.row(i+1);
I think this is a false alarm. That line should be...
for(int i=b; i<(n-1); ++i) C.row(i)=A.row(i+1);
But, why that would lock up Emacs and not just crash R I don't know.
--
Rodney Sparapani, PhD Center for Patient Care and Outcomes Research
Sr. Biostatistician http://www.mcw.edu/pcor
4 wheels good, 2 wheels better! Medical College of Wisconsin (MCW)
WWLD?: What Would Lombardi Do? Milwaukee, WI, USA
More information about the ESS-bugs
mailing list