Vadim Kutsyy
2000-Jun-21 15:29 UTC
[R] Porting S library which use "graphics.h" and "device.h"
Hello. I am porting Splus library to R, which use S "graphics.h" and "device.h", the library makes a number of high resolution plots using these. Does anyone have an experience with similar porting? I don't really want to rewrite all C code, so any recommendation would be helpful. Thanks. --------------------------- Vadim Kutsyy vadim at kutsyy.com http://www.kutsyy.com -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Peter Dalgaard BSA
2000-Jun-21 15:47 UTC
[R] Porting S library which use "graphics.h" and "device.h"
"Vadim Kutsyy" <vadim at kutsyy.com> writes:> Hello. > > I am porting Splus library to R, which use S "graphics.h" and "device.h", > the library makes a number of high resolution plots using these. > > Does anyone have an experience with similar porting? I don't really want to > rewrite all C code, so any recommendation would be helpful.Unless it is actually implementing its own device driver (in which case you have a fairly substantial amount of work on your hands...), chances are that only a couple of low-level items are being used. So the task would be to figure out what those things are and how to get similar functionality in R. What happens if you remove the #includes?? -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
David James
2000-Jun-27 01:46 UTC
[R] Porting S library which use "graphics.h" and "device.h"
Hi Vadim, [vadim at kutsyy.com]> I am porting Splus library to R, which use S "graphics.h" and "device.h", > the library makes a number of high resolution plots using these. > > Does anyone have an experience with similar porting? I don't really want to > rewrite all C code, so any recommendation would be helpful.If the library you're porting is the S-wafers (as I suspect) you don't need graphics.h, etc. The C graphics code we have in there was only for performance (we were invoking the device driver's polygon function directly in C); however, newer hardware and software may not require this hack. I suggest you use the R polygon() function directly. David A James Phone: (908) 582-3082 Bell Labs, Lucent Technologies Fax: (908) 582-3340 600 Mountain Ave Email: dj at bell-labs.com Murray Hill, NJ 07974 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._