[Rd] RSPerl...

A.J. Rossini rossini@blindglobe.net
02 Nov 2000 06:25:28 -0800


>>>>> "PDB" == Peter Dalgaard BSA <p.dalgaard@biostat.ku.dk> writes:


    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

-- 
A.J. Rossini				Rsrch. Asst. Prof. of Biostatistics
BlindGlobe Networks (home/default)	rossini@blindglobe.net	
UW Biostat/Center for AIDS Research	rossini@u.washington.edu	
FHCRC/SCHARP/HIV Vaccine Trials Net	rossini@scharp.org

FHCRC: M/Tu: 206-667-7025 (fax=4812) | Voicemail is pretty sketchy
CFAR:   W/F: 206-731-3647 (fax=3694) | Email is far better than phone
UW:    Th/F: 206-543-1044 (fax=3286) | Change last 4 digits of phone for fax
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._