Skip to content

New SVG Graphics Device for R

5 messages · T Jake Luciani, Christian Schulz, Brian Ripley

#
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
#
... 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
manipulate
#
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.  
The code is at the bottom of devSVG.c

Thanks,

Jake
On Monday 16 December 2002 03:04 pm, Christian Schulz wrote:
#
On Mon, 16 Dec 2002, T Jake Luciani wrote:

            
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.

  
    
#
This is fixed.  It no longer crashes on Win32. Sorry about that.

Grab new version from http://www.darkridge.com/~jake/RSvg

It should be on CRAN soon.

-Jake
On Monday 16 December 2002 03:04 pm, Christian Schulz wrote: