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

2014-12-10 Thread Henrik Bengtsson
On Tue, Dec 9, 2014 at 3:11 PM, Henrik Bengtsson h...@biostat.ucsf.edu wrote: I'm surprised no one mentioned alternatives to LaTeX, which is not necessarily installed on all systems and it's also quite a heavy-weight setup (100's-1000's MBs). An alternative is to output a table in Markdown or

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

2014-12-09 Thread Kate Ignatius
Thanks! I do get several errors though when running on Linux. Running your code, I get this: Error in system(cmd, intern = TRUE, wait = TRUE) : error in running command Fiddling around with the code and running this: tmp - matrix(1:9,3,3) tmp.tex - latex(tmp, file='tmp.tex')

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

2014-12-09 Thread Jeff Newmiller
pdflatex appears to have run, because it exited. You should look at the tex log file, the problem is more likely that the latex you sent out to pdflatex was incomplete. --- Jeff NewmillerThe .

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

2014-12-09 Thread Richard M. Heiberger
It looks like you skipped the step of setting the options. the latex function doesn't do pdflatex (by default it does regular latex) unless you set the options as I indicated. On Tue, Dec 9, 2014 at 3:11 PM, Kate Ignatius kate.ignat...@gmail.com wrote: Ah yes, you're right. The log has this

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

2014-12-09 Thread Kate Ignatius
Ah yes, you're right. The log has this error: ! LaTeX Error: Missing \begin{document}. Though can't really find much online on how to resolve it. On Tue, Dec 9, 2014 at 1:15 PM, Jeff Newmiller jdnew...@dcn.davis.ca.us wrote: pdflatex appears to have run, because it exited. You should look at

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

2014-12-09 Thread Kate Ignatius
I set these options: options(latexcmd='pdflatex') options(dviExtension='pdf') options(xdvicmd='xdvi') Maybe one too many? I'm running in Linux. On Tue, Dec 9, 2014 at 3:24 PM, Richard M. Heiberger r...@temple.edu wrote: It looks like you skipped the step of setting the options. the latex

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

2014-12-09 Thread Richard M. Heiberger
the last one is wrong. That is the one for which I don't know the right answer on linux. 'xdvi' displays dvi files. you need to display a pdf file. whatever is the right program on linux to display pdf files is what belongs there. On Macintosh we can avoid knowing by using 'open', which means

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

2014-12-09 Thread Prof Brian Ripley
On 09/12/2014 20:47, Richard M. Heiberger wrote: the last one is wrong. That is the one for which I don't know the right answer on linux. 'xdvi' displays dvi files. you need to display a pdf file. whatever is the right program on linux to display pdf files is what belongs there. On Macintosh

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

2014-12-09 Thread Henrik Bengtsson
I'm surprised no one mentioned alternatives to LaTeX, which is not necessarily installed on all systems and it's also quite a heavy-weight setup (100's-1000's MBs). An alternative is to output a table in Markdown or HTML and convert that to PDF. The poor man's HTML-to-PDF is to manually open the

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

2014-12-09 Thread Kate Ignatius
Okay, all. I have it to work using this: library(Hmisc) options(latexcmd='pdflatex') options(dviExtension='pdf') options(xdvicmd='gnome-open') Running your simple code from above... by question is this: the pdf is saved in a tmp directory... where do I change the directory path? I thought it

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

2014-12-09 Thread Ted Harding
The program 'gv' is installed on just about any linux system. It has many available options (one, which might be useful, being -watch, whose effect is that if the file being displayed is changed, e.g. by being over-written by a new file with the same name, then 'gv' automatically updates what it

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

2014-12-09 Thread Richard M. Heiberger
?latex answers a lot of these questions. The design intent of the latex() function is to construct one table at a time in its own .tex flle. The user then collects these and inserts them into a full document, either manually or with Sweave. The individual table has no context and no caption. It

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

2014-12-08 Thread Kate Ignatius
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.

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

2014-12-08 Thread Richard M. Heiberger
yes of course, and the answer is latex() in the Hmisc package. Why were you excluding it? Details follow Rich 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