[Rd] Metapost device driver

Peter Dalgaard P.Dalgaard at biostat.ku.dk
Tue Feb 6 12:41:10 CET 2007


Geoff Russell wrote:
> Hi All,
>
> I've started work on a MetaPost device driver (please don't hold your
> breath) and have one question about a magic number, see below.
>
> I've copied the XFig driver and renamed everything and this works, I can
> open the new metapost() and it works exactly like the xfig
> driver. Now all I have to do is the actual work!
>
> There is a magic number in ExtEntries as follows:
>
>      static const R_ExternalMethodDef ExtEntries[] = {
>            EXTDEF(PicTeX, 6),
>            EXTDEF(PostScript, 16),        EXTDEF(XFig, 11),
>            EXTDEF(MetaPost, 12),    /* Is 12 is OK */
>            EXTDEF(PDF, 13),
>
> I just picked 12, is this Ok, or does it have some special significance?
>
>   
You seem to have missed the 2nd part of Brian's reply: Yes, it is
significant, and not magic: it's the argument count.




-- 
   O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)                  FAX: (+45) 35327907



More information about the R-devel mailing list