Hi! The manual entry for readSfile states: "Not all S-PLUS objects can be handled in the current version. The most frequently encountered exceptions are functions and expressions" I have quite a number of functions writen in Splus for Unix version 3.x and saved as binary files. It would be quite difficult for me to find a machine runing that version (*) to make a dump and save to ascii. Is there any way I could read in R the Splus functions in binary format? (*)unless the Splus for Unix version could be installed on a linux machine, any experience on that? Thanks Agus Dr. Agustin Lobo Instituto de Ciencias de la Tierra (CSIC) Lluis Sole Sabaris s/n 08028 Barcelona SPAIN tel 34 93409 5410 fax 34 93411 0012 alobo at ija.csic.es -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help 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-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Mon, 25 Jun 2001, Agustin Lobo wrote:> > Hi! > > The manual entry for readSfile states: > > "Not all S-PLUS objects can be handled in the current version. The most > frequently encountered exceptions are functions and expressions" > > I have quite a number of functions writen in Splus for Unix version 3.x > and saved as binary files. It would be quite difficult for me to > find a machine runing that version (*) to make a dump and save to ascii. > Is there any way I could read in R the Splus functions in binary format?You could try it and see. But expecting one package to read another''s internal format for functions is asking a great deal, and to ask a free package to read a commercial one''s proprietary format is asking even more. -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help 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-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Mon, 25 Jun 2001 11:12:28 +0200 (MET DST), you wrote:> >Hi! > >The manual entry for readSfile states: > >"Not all S-PLUS objects can be handled in the current version. The most >frequently encountered exceptions are functions and expressions"The problem is that S-PLUS and R use different internal representations for some things. I can''t remember any examples now, but the sort of difference I''m talking about would be like storing a+b+c+d as +(a,b,c,d) versus +(a,+(b,+(c,d))) In this hypothetical example, the second system might think of "+" as a function taking two arguments, and not understand the first listing at all. One thing you could probably do would be to modify readSfile to print out debugging information about what it is reading instead of trying to reconstruct the object as it is being read. Then you (who are a lot smarter than readSfile!) could figure out the specific problems it is having with your functions, and add code to readSfile to handle those things. But it would probably be easier to just install a copy of S-PLUS somewhere, get it to read your files and generate ASCII dumps, and use those. As far as I know current versions of S-PLUS can still read version 3.x files. Duncan Murdoch -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help 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-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._