Hi Wojciech,
Wojciech Gryc wrote:
Hi Leonard,
Thanks very much for your thoughts. First, if you want to try the GUI
package it's all up now on the wiki (
http://wiki.services.openoffice.org/wiki/R_and_Calc).
...
1. I began playing around with the package. While the RDUMP() is
working, I had some trouble to run R cell-commands, although they do now
mysteriously run. [NO idea what caused the trouble, as RTESTCONNECTION()
returned #NAME!]
OOo 2.2; W2k; R:
> sessionInfo()
R version 2.5.0 (2007-04-23)
i386-pc-mingw32
locale:
LC_COLLATE=English_United States.1252;LC_CTYPE=English_United
States.1252;LC_MONETARY=English_United
States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252
attached base packages:
[1] "stats" "graphics" "grDevices" "utils" "datasets" "methods"
[7] "base"
other attached packages:
Rserve
"0.4-7"
2. I managed to crash OpenOffice trying to run the following command
into RDump():
any R-command
=> new sheet is created
=> delete the new sheet
=> new R-command
=> CRASH
[Issuing "data.frame(a=1:5,b=5:1)" the first time seems to crash OOo
when called a 2nd time, even IF the temporary sheet was NOT deleted!]
3. I just wondered how RDump() handles a matrix, so I issued:
cbind( c(1:5), c(5:1) )
Similarly, "df<-data.frame(a=1:5,b=5:1)" returns a coerced list.
Matrix and matrix-like objects (frames) seem to be represented as plain
vectors. We will need to discuss a little bit about R-data types. I will
try to write something during the weekend. (One can use is.matrix(...)
and is.data.frame(...) to test for these data-types.)
Nevertheless, nice to see how the code expands.
Sincerely,
Leonard
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]