[R] saving to docx

Duncan Temple Lang duncan at wald.ucdavis.edu
Sat Oct 20 19:02:07 CEST 2012


Just to let people know....

On the Omegahat site (and source on github),
there are packages for working with Office Open
documents (and LibreOffice too), includinging
RWordXML, RExcelXML and the generic package OOXML
on which they rely.

These are prototypes in the sense that they
do not comprehensively cover the entire OOXML specification.
Instead, the packages do have functionality for some common things to get
data in and out of OO documents, and they have
foundation functions for building new features.

  D.

On 10/19/12 3:19 PM, David Winsemius wrote:
> 
> On Oct 19, 2012, at 2:48 PM, Daróczi Gergely wrote:
> 
>> Hi Javad,
>>
>> saving R output to jpeg depends on what you want to save. For example
>> saving an `lm` object to an image would be fun :)
>> But you could export that quite easily to e.g. docx after installing
>> Pandoc[1] and pander[2] package. You can find some examples in the
>> README[3].
>>
>> Best,
>> Gergely
>>
>> [1] http://johnmacfarlane.net/pandoc/installing.html
>> [2] http://cran.r-project.org/web/packages/pander/index.html
>> [3a] brew syntax: http://rapporter.github.com/pander/#brew-to-pandoc
>> [3b] in a live R session:
>> http://rapporter.github.com/pander/#live-report-generation
> 
> I guess I need to retract my comment that such packages only existed on Windows. Despite 'pander' not passing its CRAN package check for Mac, it does build from source and the Pandoc installer does succeed inSnow Leapard and R 2.15.1. Thank you for writing the pander package, Daróczi.
> 
> 
>>
>> On Fri, Oct 19, 2012 at 9:54 PM, javad bayat <j.bayat194 at gmail.com> wrote:
>>
>>> hi all,
>>> how can i saving R output to docx or Jpeg format?
>>
>




More information about the R-help mailing list