Thank you, David.
Cairo is installed and loaded.
cairoDevice is installed and loaded.
RGtk2 is installed and loaded (which installed GTK+)

yet I still get false for cairo:

> capabilities()
    jpeg      png     tiff    tcltk      X11     aqua http/ftp  sockets
    TRUE     TRUE     TRUE     TRUE    FALSE    FALSE     TRUE     TRUE
  libxml     fifo   cledit    iconv      NLS  profmem    cairo
    TRUE    FALSE     TRUE     TRUE     TRUE    FALSE    FALSE


> Cairo.capabilities()
  png  jpeg  tiff   pdf   svg    ps   x11   win
 TRUE FALSE FALSE  TRUE  TRUE  TRUE FALSE  TRUE

> ggsave(file="chart.svg")
Saving 6" x 6" image
Error: 'svg' is not an exported object from 'namespace:grDevices'
>

I'm lost as to how to produce the svg output on windows. All works suitably
on Linux.


Michael Roessler, CFA
michael.roes...@keyevent.com



On Sat, Aug 1, 2009 at 6:15 AM, David Winsemius <dwinsem...@comcast.net>wrote:

>
> On Jul 31, 2009, at 6:41 PM, Michael Roessler wrote:
>
>  How may one save a graphic as svg on Windows? The svg() command is
>> recognized and functions well on Linux, etc., but not on Windows, it
>> seems.
>> I'm trying to use Hadley Wickam's ggplot2 and I would like to be able to
>> save created charts as svg for later input into Illustrator. I am able to
>> accomplish this workflow under Linux, but I don't know how to get R to
>> recognize the svg() command under Windows. I have loaded RsvgDevice,
>> Cairo,
>> and cairoDevice in my attempts. The problem seems to me to be directly
>> related to enabling R to produce svg output on Windows, rather than
>> related
>> to ggplot2.
>>
>>
> What does capabilities() return?
> --
>
> David Winsemius, MD
> Heritage Laboratories
> West Hartford, CT
>
>

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to