Hi, i'm a newbie with latex and postscript but recognize the power in combination wit R . ...current i don't now how i have to "inform" R1.5.0(patched) about my MikeTex installation on windows 2000 and get following latex(table) Warning messages: 1: cat not found 2: cd not found 3: xdvi not found P.S. maybe i must define in Rprofile something ??? Thanks for help and suggestions, Christian -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Wed, 03 Jul 2002 14:19:26 +0200 Christian Schulz <c.schulz at metrinomics.de> wrote:> Hi, > i'm a newbie with latex and postscript but recognize > the power in combination wit R . > > ...current i don't now how i have to "inform" R1.5.0(patched) about my > MikeTex installation on windows 2000 and get following > > latex(table) > > Warning messages: > 1: cat not found > 2: cd not found > 3: xdvi not found > > P.S. maybe i must define in Rprofile something ??? > > Thanks for help and suggestions, > ChristianChristian, You need to state which packages you are using. If you are using the latex function in the Hmisc library, I have to admit to putting more work into that for Linux/Unix than for Windows. The functions such as print.latex and related ones need modification for Windows (volunteers welcome) or you need to carefully set up your system so that the latex and xdvi commands are in your system path and also install the cygwin utilities (to get cat, cd, etc.). The functions do check options(latexcmd= xdvicmd= dvipscmd=) which you can easily specify for your LaTeX installation (and put in .Rprofile) when your executables are not "latex" "xdi" "dvips". Note that to use latex just for creating the .tex file (e.g., w <- latex(myobject,fi='/tmp/my.tex') you only need to get the "latex" executable working with latex( ). -Frank Harrell> > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- > r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html > Send "info", "help", or "[un]subscribe" > (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch > _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._-- Frank E Harrell Jr Prof. of Biostatistics & Statistics Div. of Biostatistics & Epidem. Dept. of Health Evaluation Sciences U. Virginia School of Medicine http://hesweb1.med.virginia.edu/biostat -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Hi Christian, unfortunalty I can't help you with your problem (but I see Mr. Harrell has send an answer). Maybe you are interested in another solution how to combine Latex and R (using "Sweave"[1]). 1. You need the library "tools" from CRAN 2. Save the next lines as 'c:\beispiel.rnw' % ---- beispiel.rnw ---------- \documentclass{article} \usepackage{graphicx} \begin{document} % ------ R-Code - Berechnung XYZ ------- <<Kap1,echo=T>>setwd("c:/") library(hmisc) a <- c(3,4,5,6,7,6,5,4,3,6) b <- c(6,5,4,5,6,7,8,6,5,5) mean.a <- mean(a) da <- density(a) db <- density(b) @ % ------ R-Code - Berechnung XYZ ------- The mean of a is \Sexpr{mean.a}. The kernel density from a and b: \setkeys{Gin}{width=0.6\textwidth} \begin{center} <<pl1,fig=T,echo=F>>plot(da, xlim=range(da$x, db$x), ylim=range(da$y, db$y),main="XYZ") lines(db, col="red") @ \end{center} \begin{center} <<tab1,echo=F>>summary.stats <- cbind( 'Mean (b)'=mean(b), 'SD (a)'=sd(a)) latex(summary.stats, fi='table.tex') @ \input{table} \end{center} \end{document} % ---- beispiel.rnw ---------- 3. Start R 4. R> library(tools) 5. R> Sweave("C:/beispiel.rnw") 6. Now you can "latexen" the file 'beispiel.tex' Regards Patrick [1] See: http://www.ci.tuwien.ac.at/~leisch/Sweave/Sweave-manual-20020507.pdf [2] There is a new LaTeX-package called 'ctable'. Purpose: "The 'ctable' package lets you easily typeset centered, captioned table and figures floats with optional footnotes [...]." Maybe you take a look. ------------- Patrick Hausmann Friedrich-Wilhelm Str. 37 - D-28199 Bremen Tel. +49 421 5980631 - Fax. +49 421 5980632 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Thanks for the replies, and the recommendation to sweave what i'm known and since 3 months test for my purposes ! Vera, as a newbie in latex i have no problems with MikeTex /WinEdt ! http://www.winedt.com In latex you can load additional packages, like in R........ The results in comparison to word are great, and fancyhdr (use google !) is a nice package for page-layout. Create a folder in your MikeTex installation. i.e. C:\texmf\tex\latex\fancyhdr and copy the fanyhdrFile like fancyhdr.sty etc. in this folder hope this helps, christian Vera, Graciella wrote:>Hi, > >Not having used latex before I have to prepare a document and will only be >able to work on windows. Would you by any chance have idea of a user >friendly package. I found one in the internet but the files are so many that >it is difficult to know which is current and essential. The size of the >files is quite large. > >Thank you in advance for any help. >G Vera > >>-----Original Message----- >>From: Christian Schulz [SMTP:c.schulz at metrinomics.de] >>Sent: 03 July 2002 08:19 >>To: r-help at stat.math.ethz.ch >>Subject: [R] latex >> >>Hi, >>i'm a newbie with latex and postscript but recognize >>the power in combination wit R . >> >>...current i don't now how i have to "inform" R1.5.0(patched) about my >>MikeTex installation on windows 2000 and get following >> >>latex(table) >> >>Warning messages: >>1: cat not found >>2: cd not found >>3: xdvi not found >> >>P.S. maybe i must define in Rprofile something ??? >> >>Thanks for help and suggestions, >>Christian >> >>-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. >>-.-.- >>r-help mailing list -- Read >>http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html >>Send "info", "help", or "[un]subscribe" >>(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch >>_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._. >>_._._ >> >>_______ >>Confidentiality Notice >> >>This email (and any attachment) is intended only for the attention of the >>addressee. Its unauthorised use, disclosure, storage or copying is not >>permitted. If you are not the intended recipient, please destroy all >>copies and inform the sender by return email. Thank you >>_________________________________________________________________ >>This email has been scanned for all viruses by the MessageLabs SkyScan >>service. For more information on a proactive anti-virus service working >>around the clock, around the globe, visit http://www.messagelabs.com >>________________________________________________________________________ >> > >____ >Confidentiality Notice > >This email (and any attachment) is intended only for the attention of the addressee. Its unauthorised use, disclosure, storage or copying is not permitted. If you are not the intended recipient, please destroy all copies and inform the sender by return email. Thank you >____________________________________________________________________ >This email has been scanned for all viruses by the MessageLabs SkyScan >service. For more information on a proactive anti-virus service working >around the clock, around the globe, visit http://www.messagelabs.com >________________________________________________________________________ >-------------- next part -------------- An HTML attachment was scrubbed... URL: https://stat.ethz.ch/pipermail/r-help/attachments/20020704/a68f24a5/attachment.html