hi all, how can i saving R output to docx or Jpeg format? [[alternative HTML version deleted]]
On Oct 19, 2012, at 12:54 PM, javad bayat wrote:> hi all, > how can i saving R output to docx or Jpeg format?There are some packages with functions to write to Word formats, but the one I know of only runs on Windows, so I have not bothered remembering its name. The sos package offers nice search facilities. For saving to jpeg format: ?Devices -- David Winsemius, MD Alameda, CA, USA
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 On Fri, Oct 19, 2012 at 9:54 PM, javad bayat <j.bayat194@gmail.com> wrote:> hi all, > how can i saving R output to docx or Jpeg format? > > [[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. >[[alternative HTML version deleted]]
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-generationI 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? >-- David Winsemius, MD Alameda, CA, USA