Folks,
it occurred to me that our way of communicating with R (and potentially
other packages, but let's focus on R for the moment) could be much
improved if we had R functions for reading/writing bundles as R lists.
I started experimenting a little with the "XML" R package. For example:
<hansl>
bundle a = null
a.n = 512
bwrite(a, "a.xml")
<hansl>
and then do
<R>
library(XML);
a <- xmlParse("a.xml");
b <- xmlToList(a);
c <- b[1]$`bundled-item`$text
n <- as.numeric(c);
print(n);
</R>
and this is quite cool. Of course this would have to be properly
generalised/extended on the R side. I suppose that for someone who's
fluent in R it shouldn't be too much work. Is anybody willing to help with
this?
-------------------------------------------------------
Riccardo (Jack) Lucchetti
Dipartimento di Scienze Economiche e Sociali (DiSES)
Università Politecnica delle Marche
(formerly known as Università di Ancona)
r.lucchetti(a)univpm.it
http://www2.econ.univpm.it/servizi/hpp/lucchetti
-------------------------------------------------------