[ESS] Introducing Polymode

Rodney Sparapani rsparapa at mcw.edu
Thu Mar 28 15:04:02 CET 2013


On 03/27/2013 04:43 PM, Vitalie Spinu wrote:
>   >  * when moving into a R chunk, I see:
>
>    >  polymode error: Args out of range: "hite", 4, 6 [5 times]
>
> This one should be fine now.
>
>   Thanks,
>      Vitalie

Yes!!  This fixes R help for me.  But, I still see
string literals in fontlock-test/runif.Rcxx with poly-r+c++-mode...

require(inline)
require(RcppEigen)

runifXd <- cxxfunction(signature(arg1="integer"), plugin='RcppEigen',
                        includes='
RNGScope scope;
using namespace Eigen;

inline VectorXd runifXd(int size, double a=0., double b=1.) {
   return as<VectorXd>(runif(size, a, b));
}',
                        body='return wrap(runifXd(as<int>(arg1)));')

runifXd(3)

i.e., includes= and body= are formatted as a string rather than C++.
Am I doing something wrong?  Thanks

-- 
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-help mailing list