[R] eps in odfWeave
Kuhn, Max
Max.Kuhn at pfizer.com
Mon Jun 25 17:44:11 CEST 2007
Dieter,
What is the version of odfWeave? If you use those specifications in the
current version (0.5.9):
> plotInfo <- getImageDefs()
> plotInfo$type = "eps"
> plotInfo$device = "postscript"
> setImageDefs(plotInfo)
you will probabiliy need to set
horizontal = FALSE, onefile = FALSE, and paper = "special" to generate
ps graphics for OpenOffice
an image size of 480 inches by 480 inches has been requested.
> setImageDefs(plotInfo)
When I run somewhat altered options:
> plotInfo <- getImageDefs()
> plotInfo$type = "eps"
> plotInfo$plotWidth = 4
> plotInfo$plotHeight = 4
> plotInfo$device = "postscript"
> plotInfo$args = list(
+ horizontal = FALSE,
+ onefile = FALSE,
+ paper = "special")
> setImageDefs(plotInfo)
>
> demoFile <- system.file("examples", "simple.odt", package =
"odfWeave")
> odfWeave(demoFile, "c:/simpleOut.odt")
Copying C:/PROGRA~1/R/R250/library/odfWeave/examples/simple.odt
Setting wd to
C:\DOCUME~1\KuhnA03\LOCALS~1\Temp\Rtmpp4Zcsb/odfWeave25113622566
<snip>
Copying simple.odt
Resetting wd
Removing
C:\DOCUME~1\KuhnA03\LOCALS~1\Temp\Rtmpp4Zcsb/odfWeave25113622566
Done
>
There were some issues with eps and older versions of odfWeave, but I
don't recall that specific error.
[The only other "issue" with eps and odfWeave (on windows), is image
rendering. On my system, there is a windows system file called convert
(instead of imagemagick's convert) which messes up the image preview
within the document. Marc Schwartz and I have talked about this off-list
and he doesn't have the same issues.]
Max
-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Dieter Menne
Sent: Monday, June 25, 2007 11:04 AM
To: R-Help
Subject: [R] eps in odfWeave
Dear Weavers,
Does someone have an example of using eps or any other vector graphics
with
odfWeave? It tried the example below (and commented variants) with
simple.odt in the examples directory, and got an error.
Dieter
#---
library(odfWeave)
plotInfo <- getImageDefs()
plotInfo$type = "eps"
#plotInfo$device = "postscript"
setImageDefs(plotInfo)
odfWeave("simple.odt", "simpleOut.odt")
#-----
# Writing to file content_1.xml
# Processing code chunks ...
# 1 : term hide(label=loadLibs)
# 2 : term xml(label=showOutputList)
#Error in check(options) : invalid value for 'type' : eps
Version: 0.5.9
Date: 2007-20-06
platform i386-pc-mingw32
arch i386
os mingw32
system i386, mingw32
status
major 2
minor 5.0
year 2007
month 04
day 23
svn rev 41293
language R
version.string R version 2.5.0 (2007-04-23)
______________________________________________
R-help at stat.math.ethz.ch 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.
----------------------------------------------------------------------
LEGAL NOTICE\ Unless expressly stated otherwise, this messag...{{dropped}}
More information about the R-help
mailing list