Re: [R] latex() hangs R console

2010-12-08 Thread Michael Friendly
On 12/7/2010 9:35 PM, Yihui Xie wrote: shell(paste(yap, C:/WINDOWS/TEMP/Rtmpz0QkT8/file311f289a.dvi)) I can confirm that using shell() directly on the .dvi file generated by latex() works, while system() does not -- it hangs as before. However, Yihui's patch, in this form still hangs, so

[R] latex() hangs R console

2010-12-07 Thread Michael Friendly
= ) % \begin{table}[!tbp] \begin{center} \begin{tabular}{lrrr}\hline\hline \multicolumn{1}{l}{x}\multicolumn{1}{c}{c}\multicolumn{1}{c}{d}\multicolumn{1}{c}{this that}\tabularnewline \hline a$1$$3$$5$\tabularnewline b$2$$4$$6$\tabularnewline \hline \end{tabular} \end{center} \end{table} cd(c:/r

Re: [R] latex() hangs R console

2010-12-07 Thread RICHARD M. HEIBERGER
Michael, The easiest workaround is to assign the result of the latex() command. myfilename - latex(x) print.default(myfilename) It looks to me like the insides of the dvi.latex function aren't quite right for Windows. Rich [[alternative HTML version deleted]]

Re: [R] latex() hangs R console

2010-12-07 Thread Dennis Murphy
Hi: I've experienced the same behavior as Dr. Friendly when trying to use latex() in an Sweave code chunk (with results = tex in the chunk header) on a Win7 system with 64-bit R (everything up to date). Is the answer the same in that case? TIA for your assistance, Dennis On Tue, Dec 7, 2010 at

Re: [R] latex() hangs R console

2010-12-07 Thread Yihui Xie
I guess I know the answer but I am not completely clear about the reason; print.latex() calls show.dvi() to open the DVI file using system(), and under Windows it is usually better using shell() instead of system(). The help page says shell() is a friendly wrapper of system() under Windows, and

[R] Latex and r

2010-06-16 Thread moleps
Dear R´ers I´m trying to get a summary table using latex and summary in the rms package to no avail. I´m running R 2.10.1, Mac OS X snow leopard and I have the mactex 2009 distribution installed. Any obvious things I´m missing? //M options(digits=3) set.seed(173) sex -

Re: [R] Latex and r

2010-06-16 Thread Erik Iverson
moleps wrote: Dear R´ers I´m trying to get a summary table using latex and summary in the rms package to no avail. I´m running R 2.10.1, Mac OS X snow leopard and I have the mactex 2009 distribution installed. Any obvious things I´m missing? file587f83cb.log. sh: xdvi: command not found

Re: [R] Latex and r

2010-06-16 Thread Erik Iverson
moleps wrote: xdvi is installed in the same location as yours. I even did a reinstallment of mactex. Still doesnt work. But since I´m now convinced its related to my latex distribution I´ll take the problem elsewhere.. And the directory that xdvi is located in is in your path?

Re: [R] Latex and r

2010-06-16 Thread Kevin E. Thorpe
moleps wrote: Dear R´ers I´m trying to get a summary table using latex and summary in the rms package to no avail. I´m running R 2.10.1, Mac OS X snow leopard and I have the mactex 2009 distribution installed. Any obvious things I´m missing? //M options(digits=3) set.seed(173) sex -

Re: [R] Latex and r

2010-06-16 Thread Georg Otto
moleps mole...@gmail.com writes: Apparently you don't have xdvi installed on your system. HTH Georg Dear R´ers I´m trying to get a summary table using latex and summary in the rms package to no avail. I´m running R 2.10.1, Mac OS X snow leopard and I have the mactex 2009 distribution

Re: [R] Latex and r

2010-06-16 Thread moleps
xdvi is installed in the same location as yours. I even did a reinstallment of mactex. Still doesnt work. But since I´m now convinced its related to my latex distribution I´ll take the problem elsewhere.. Regards, //M On 16. juni 2010, at 17.19, Prof Brian Ripley wrote: On Wed, 16 Jun

Re: [R] Latex and r (using summary from RMS)

2010-06-16 Thread moleps
Dear all, After spending all day and most of the night on this I did a new R-installation and it works. The question now is - upon running this code (from the Hmisc library-latex function) I believe the call to summary.formula is allright, but the latex command results in a totally different

Re: [R] LaTeX and R-scripts/-results

2008-11-29 Thread Oliver Bandel
Hello Thomas (and all), Zitat von Thomas Petzoldt [EMAIL PROTECTED]: Oliver Bandel wrote: Hello, at some places I read about good interaction of LaTeX and R. Can you give me a starting point, where I can find information about it? Are there special LaTeX-packages

Re: [R] LaTeX and R-scripts/-results

2008-11-26 Thread Thomas Petzoldt
Oliver Bandel wrote: Hello, at some places I read about good interaction of LaTeX and R. Can you give me a starting point, where I can find information about it? Are there special LaTeX-packages for the support, or does R have packages for support of LaTeX? Or will an external Code-Generator

Re: [R] LaTeX and R-scripts/-results

2008-11-26 Thread Philipp Pagel
On Wed, Nov 26, 2008 at 08:50:33AM +0100, Oliver Bandel wrote: at some places I read about good interaction of LaTeX and R. Can you give me a starting point, where I can find information about it? Have a look at these: Sweave() xtable()(xtable) latex() (Hmisc) cu

[R] LaTeX and R-scripts/-results

2008-11-25 Thread Oliver Bandel
Hello, at some places I read about good interaction of LaTeX and R. Can you give me a starting point, where I can find information about it? Are there special LaTeX-packages for the support, or does R have packages for support of LaTeX? Or will an external Code-Generator be used? TIA

[R] LaTeX in R

2008-03-07 Thread Mario Maiworm
Dear Rers, I understand that I can include R-code in LaTeX using Sweave. Is there a way to do it the other way round? Particularly, I need some TeX symbols in the legend of an R-plot. This can be done in matlab easily, so I am optimistic with R. Any suggestions for a command or package? Best

Re: [R] LaTeX in R

2008-03-07 Thread Uwe Ligges
Mario Maiworm wrote: Dear Rers, I understand that I can include R-code in LaTeX using Sweave. Is there a way to do it the other way round? Particularly, I need some TeX symbols in the legend of an R-plot. This can be done in matlab easily, so I am optimistic with R. Any suggestions

Re: [R] LaTeX in R

2008-03-07 Thread Mario Maiworm
://cinacs.org __ -Ursprüngliche Nachricht- Von: Uwe Ligges [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 7. März 2008 15:27 An: Mario Maiworm Cc: r-help@r-project.org Betreff: Re: [R] LaTeX in R Mario Maiworm wrote: Dear

Re: [R] LaTeX in R

2008-03-07 Thread Uwe Ligges
] Gesendet: Freitag, 7. März 2008 16:30 An: Mario Maiworm Cc: r-help@r-project.org Betreff: Re: AW: [R] LaTeX in R Mario Maiworm wrote: Thank you, uwe and jeremy. I was actually looking exactly for that! But something still doesn't work: I want to plot a symbol in a legend of a plot, lets

Re: [R] LaTeX in R

2008-03-07 Thread Sundar Dorai-Raj
__ -Ursprüngliche Nachricht- Von: Uwe Ligges [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 7. März 2008 16:30 An: Mario Maiworm Cc: r-help@r-project.org Betreff: Re: AW: [R] LaTeX in R Mario Maiworm wrote: Thank you, uwe and jeremy. I was actually looking exactly

Re: [R] LaTeX in R

2008-03-07 Thread Mario Maiworm
[mailto:[EMAIL PROTECTED] Gesendet: Freitag, 7. März 2008 17:22 An: Uwe Ligges Cc: Mario Maiworm; r-help@r-project.org Betreff: Re: [R] LaTeX in R Or my personal favorite if the length of mySigma is variable: mySigma - 2:3 plot(1:10, dnorm(1:10, sd = mySigma[1]), type = 'l') lines(dnorm(1:10