Skip to content
Prev 4557 / 63424 Next

RSPerl...

PDB> rossini@blindglobe.net (A.J. Rossini) writes:
    >> Duncan - (but sent to R-devel, for any other thoughts?)
    >> 
    >> How do you envision RSPerl being used?  Without having seen the
    >> details, I can think of playing with strings; is there a
    >> preferred incantation for stringification of R objects
    >> (serialization)?

    PDB> I don't know if it's preferred, but the default thing you get
    PDB> if you edit() an R object is that the editor is started on
    PDB> the results of dput() and the result is subjected to
    PDB> eval(parse(...)). Perl might just be smart enough to handle
    PDB> data in that form.

    PDB> Another idea would be to use mechanisms like in .Tcl.args
    PDB> where there's a layer that stringifies R objects (into what? 
    PDB> Perl code?)  before passing them to Perl. With Perl's
    PDB> well-known ojections to fixed rules, that might be tricky,
    PDB> but who knows?

    PDB> Seeing some sketches of the functionality you want to achieve
    PDB> might be fruitful.

Peter, here's 2 of the simpler examples (silly, but please scale for
rationale) of what I'm wondering about:

I'd like to do:

lm.output <- .Perl("PerlToSplitAndFormatLMandUseWebDAVtoPostToMyWWWSite",
                   lm(y~x))

or similarly,

NewData  <- .Perl("GrabAndMerge2CriticalDataSetsFromTheWWW",
                  NHANES.19xx,
                  NHANES.19yy)

where NHANES.zzzz is a list describing the location and
characteristics of a particular data set.

Everything is trivial in the mathematician's sense to me, except for
getting Perl to parse and/or manipulate the R object. 

best,
-tony