Hi everyone,

More updates from a weekend of coding!

First, Leonard -- I think an iterator that parses functions and arguments
can actually be built using an UNO add-in. Once the add-in gets the function
call itself, it can use C++ or Java to parse it all and then send it back to
Calc. That's how I did the work below.

I spent the last few days playing with UNO add-ins available in the OO SDK
and have some great results and news. Basically, I put together a
verysimple scripting tool that allows you to pass functions to R
through RServe.
It contains two functions that allow the passing of columns as data and
sending R entire commands. It works great with random variables like rnorm()
or pnorm(), and worked when using it with cov() and cor(). Unfortunately,
more complex functions like glm() and t.test() don't work yet due to their
R-based object structure, but I know how to fix this (it's just a matter of
time).

To read more, see this document:
http://www.11-55.org/ooblog/wp-content/uploads/2007/05/design-doc-plan.pdf

In general, I think it would be best to continue with the UNO add-in
development using Rserve. While working on this, I realized that no matter
what happens, users of this tool will need to install R and possibly an R
package. As such, I don't mind making the entire thing external to the OO
source code and just build an installer or tutorial that contains everything
on one site.

Please let me know what you think. :)

Thanks,
Wojciech

--

Five Minutes to Midnight:
Youth on human rights and current affairs
http://www.fiveminutestomidnight.org/

Reply via email to