[R] Output and Word

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed Jul 19 11:47:11 CEST 2006


On Wed, 19 Jul 2006, David Hajage wrote:

> thank you Greg Snow for this information !
> 
> But I have this message :
> 
> > odfWeave("c:/simple.odt", "c:/essai.odt")
>   Setting wd
>   Copying  c:/simple.odt
>   Decompressing ODF file using unzip -o
> "C:\DOCUME~1\Maud\LOCALS~1\Temp\RtmpF0hdqb/simple.odt"
> Erreur dans odfWeave("c:/simple.odt", "c:/essai.odt") :
>         Error unzipping file
> De plus : Warning message:
> unzip introuvable
> 
> R says that it doesn't find "unzip"... What is this program ?

It is in the Rtools.zip bundle used to build source packages for R under 
Windows (your unstated OS, it seems).

However, you should take this up with the package maintainer, as R has the 
capability to unzip files builtin (utils::zip.unpack) on Windows.

> 
> 2006/7/18, Greg Snow <Greg.Snow at intermountainmail.org>:
> >
> > Others have suggested using R2HTML (which is a good option).
> >
> > Another option is to use Sweave and specifically the new odfWeave
> > package for R.  This works on OpenOffice files rather than word files
> > (but OpenOffice  http://www.openoffice.org/ can inport and export word
> > documents).
> >
> > The basic idea is to write your report in OpenOffice (or LaTeX or HTML),
> > but anywhere that you want statisticial output (graphs, tables) you
> > include instead the R code to produce the table, graph, or whatever.
> > Run this file through R (using Sweave or odfWeave) and the resulting
> > file has replaced all the code segments with their output.
> >
> > The documentation with odfWeave has examples.
> >
> > Hope this helps,
> >
> > --
> > Gregory (Greg) L. Snow Ph.D.
> > Statistical Data Center
> > Intermountain Healthcare
> > greg.snow at intermountainmail.org
> > (801) 408-8111
> >
> >
> > -----Original Message-----
> > From: r-help-bounces at stat.math.ethz.ch
> > [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of sharon snowdon
> > Sent: Monday, July 17, 2006 2:36 PM
> > To: r-help at stat.math.ethz.ch
> > Subject: [R] Output and Word
> >
> > Hi
> >
> > I have just started to have a look at R. I have used most stats software
> > packages and can use perl, visual basic etc. I am interested in how well
> > it handles lots of output e.g. tables or charts. How would you get lots
> > of output most easily and quickly into a Word document?
> >
> > Sharon Snowdon
> >
> >
> >
> > ------------------------------------------------------------------------
> > -
> >
> >
> >
> >
> >
> >
> > --
> >
> >
> >
> >
> >
> > ______________________________________________
> > 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
> >
> > ______________________________________________
> > 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.
> >
> 
> 
> 
> 

-- 
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 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-help mailing list