[R] New SVG Graphics Device for R
ripley@stats.ox.ac.uk
ripley at stats.ox.ac.uk
Mon Dec 16 22:45:03 CET 2002
On Mon, 16 Dec 2002, T Jake Luciani wrote:
> Yeah I got the same.
>
> I'm confused because it works fine in Linux.
>
> I'm registering the device properly as fas as I can tell.
>
> Can a core developer take a look and tell me what I'm doing wrong.
Using undocumented non-public entry points in the R internals. The
traceback is (whyever do people not report this basic information: see the
rw-FAQ for how?)
Call stack:
0048241B R.dll:0048241B free
004CA292 R.dll:004CA292 GEdestroyDevDesc
004F10F6 R.dll:004F10F6 Rf_selectDevice
0051B1FE R.dll:0051B1FE do_devoff
005049B4 R.dll:005049B4 do_internal
...
so the R graphics internals are calling R's internal free on memory
allocated by your device, which allocated the memory from msvcrt.dll and
not from the internal malloc.
Solution: build in the source tree of R and add -lRm to Makevars
(and you might as well have configure.win and Makevars.win whilst you are
at it). That gives you access to R's internal malloc.
> The code is at the bottom of devSVG.c
>
> Thanks,
>
> Jake
>
> On Monday 16 December 2002 03:04 pm, Christian Schulz wrote:
> > ... really a nice tool !
> > , after enter dev.off() the Rgui.exe crash !?
> > (Win2000 / R.1.6.1)
> >
> > ...neverthless the *.svg is written correctly.
> >
> > thanks for advance & regards,christian
> >
> >
> >
> >
> > ----- Original Message -----
> > From: "T Jake Luciani" <jake.luciani at riskmetrics.com>
> > To: <r-help at stat.math.ethz.ch>
> > Sent: Monday, December 16, 2002 7:20 PM
> > Subject: [R] New SVG Graphics Device for R
> >
> > > Hello,
> > >
> > > I just released a Graphics Device for R >= 1.4 which outputs w3 compliant
> > > SVG. I Have also created a Java 1.1 applet which can render and
> >
> > manipulate
> >
> > > the SVG generated from the graphics device.
> > >
> > > Please visit http://www.darkridge.com/~jake/RSvg/ for more info
> > >
> > > Thanks,
> > >
> > > T Jake Luciani
> > >
> > > ______________________________________________
> > > R-help at stat.math.ethz.ch mailing list
> > > http://www.stat.math.ethz.ch/mailman/listinfo/r-help
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> http://www.stat.math.ethz.ch/mailman/listinfo/r-help
>
--
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
More information about the R-help
mailing list