Skip to content

R-beta: R with gnuwin32

2 messages · Guido Masarotto, Peter Dalgaard

#
Peter Dalgaard BSA writes:
Ok. I am here.
(a) The gnuwin header miss some definition used by R. I hand copied
  them (they are long but not too much) from the header of
  a old Borland compiler (16 bit; so I also crossed my finger).
  I do not know if hand copy is correct but I mean "a copy made
  by my finger not using the cut and paste". Since now
  the header are freely available but non redistribuible I 
  suppose that this is legal. 
  (b) So I have a version of R that "works".
      "works": - I could run all the demos but the dynload one (I didn't
                 tried;
	       - I played with it for an   hour preparing the
	         slides for my lesson of this afternoon (poisson regression
	         + graph)
	       - I make use of the functions in the eda library (dynloaded).
	         and I tried some silly homemade dll. 
  (c) Running as the "official" one? No. The basic problem are
      with the R sources that load data/library...
      The system.win file, the one that I used from R-0.61.1, has
      a not working "library" (also but perhaps I make some mistake a 
      broken "data")
      For example to run the demos I used a silly ad hoc data function
      of the type
      data<-function(a) source(paste(basedata,a),sep="")
      On the contrary, some of the command under unix are implemented
      by shell commands. So the src/library/base/system.unix can't be
      used.
      Hence this part must be fixed. This is why, yesterday, I asked
      for documentation of what must go in  src/library/base/system.
      Perhaps, it was an inappropriate request since I can
      look to the unix one. But, you know. After, some hours
      I had the system running but I could not do "data(iris)"
      and with "no iris data there is no statistics".
  (d) About Win30. I don't know.
I just compare the time of
  for (i in 1:1000) a<-solve(matrix(rnorm(100),10,10))
matrix and the gnuwin32 version was 20% faster. 
I suppose that this is not a  fair test since
is biased towards the comparison of the fortran code (and I used g77).
If you want, I can make the patch available in a couple of days.
  I just want to recompile from the scratch so that you have not
  to bother about the fact that I have forgotten a file o something
  like this. But I have now time today and tomorrow (teaching,
  teaching,...)
I suppose that if you have gcc running somewhere and configured
  to support win32 as target you can cross-compile. 
  But, I have not tried.
Ok. But with a stable distribution.
Thanks. So regex.h must be built. The line before the one
  that you quoted say that regex.h is generated by mkh.
  What kind of monster mkh is?


guido masarotto
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
guido@sirio.stat.unipd.it writes:
Hmm. I still don't know what I'm talking about, but if you go to

http://ftpsearch.ntnu.no/

and look for regex, you'll find several ports to non-BSD systems
(mostly off of machines in Japan!), which contain regex.h's.

[Probably someone else on this group knows *exactly* what the regex
business is all about?]