[R] Printing/Generating/Outputting a Table (Not Latex)

Richard M. Heiberger rmh at temple.edu
Tue Dec 9 05:13:58 CET 2014

yes of course, and the answer is latex() in the Hmisc package.
Why were you excluding it?
Details follow


The current release of the Hmisc package has this capability on
Macintosh and Linux.
For Windows, you need the next release 3.14-7 which is available now at github.

## windows needs these lines until the new Hmisc version is on CRAN
devtools::install_github("Hmisc", "harrelfe")

## All operating systems

## Macintosh

## Windows, one of the following
## 32-bit windows
## 64 bit windows

## Linux
## I don't know the xdvicmd value

## this works on all R systems
tmp <- matrix(1:9,3,3)
tmp.dvi <- dvi(latex(tmp))
print.default(tmp.dvi) ## prints filepath of the pdf file
tmp.dvi  ## displays the pdf file on your screen

On Mon, Dec 8, 2014 at 9:31 PM, Kate Ignatius <kate.ignatius at gmail.com> wrote:
> Hi,
> I have a simple question.  I know there are plenty of packages out
> there that can provide code to generate a table in latex.  But I was
> wondering whether there was one out there where I can generate a table
> from my data (which ever way I please) then allow me to save it as a
> pdf?
> Thanks
> K.
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.

More information about the R-help mailing list