John Kane wrote: > Works just fine, thanks. I'll blame the help as > being very slightly ambiguous.
From the help file: \section{Side Effects}{ creates various system files and runs various Linux/UNIX system commands which are assumed to be in the system path. } \details{ If running under Windows and using MikTeX, \code{latex} and \code{yap} must be in your system path, and \code{yap} is used to browse \code{.dvi} files created by \code{latex}. You should install the \code{geometry} and \code{ctable} styles in MikTeX to make optimum use of \code{latex()}. Frank > > Of course another 2-3 minutes experimenting and I > should have gotten it. > > --- Gabor Grothendieck <[EMAIL PROTECTED]> > wrote: > >> Try specifying the file= argument: >> >> latex(rr, file = "") >> >> On Jan 13, 2008 1:05 PM, John Kane >> <[EMAIL PROTECTED]> wrote: >>> I seem to have a problem getting latex (Hmisc) to >>> work. >>> Any suggestions as to what I am doing wrong? >>> >>> Thanks >>> >>> >>> library(Hmisc) >>> aa <- data.frame(aa=1:10, bb=rnorm(10, 5, 2), >>> cc=rnorm(10, 20, 4)) >>> rr <- lm(cc~aa+bb, data=aa); rr >>> latex(rr) >>> >>>> latex(rr) >>> 'latex' is not recognized as an internal or >> external >>> command, >>> operable program or batch file. >>> Warning messages: >>> 1: In cbind(cx, cxk) : >>> number of rows of result is not a multiple of >> vector >>> length (arg 2) >>> 2: In cbind(cx, cxk) : >>> number of rows of result is not a multiple of >> vector >>> length (arg 2) >>> 3: In cbind(cx, cxk) : >>> number of rows of result is not a multiple of >> vector >>> length (arg 2) >>> 4: In cbind(cx, cxk) : >>> number of rows of result is not a multiple of >> vector >>> length (arg 2) >>> 5: In is.na(xj) : >>> is.na() applied to non-(list or vector) of type >>> 'language' >>> 6: In is.na(xj) : >>> is.na() applied to non-(list or vector) of type >>> 'language' >>> 7: In cbind(cx, cxk) : >>> number of rows of result is not a multiple of >> vector >>> length (arg 2) >>> 8: In cbind(cx, cxk) : >>> number of rows of result is not a multiple of >> vector >>> length (arg 2) >>> 9: In cbind(cx, cxk) : >>> number of rows of result is not a multiple of >> vector >>> length (arg 2) >>> 10: In shell(cmd, wait = TRUE, intern = output) : >>> 'cmd' execution failed with error code 1 >>> >>> >>> sessionInfo() >>> R version 2.6.1 (2007-11-26) >>> i386-pc-mingw32 >>> >>> locale: >>> > LC_COLLATE=English_Canada.1252;LC_CTYPE=English_Canada.1252;LC_MONETARY=English_Canada.1252;LC_NUMERIC=C;LC_TIME=English_Canada.1252 >>> attached base packages: >>> [1] stats graphics grDevices utils >> datasets >>> methods base >>> >>> other attached packages: >>> [1] gdata_2.3.1 Hmisc_3.4-3 >>> >>> loaded via a namespace (and not attached): >>> [1] cluster_1.11.9 grid_2.6.1 gtools_2.4.0 >>> lattice_0.17-2 >>> >>> ______________________________________________ >>> 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. ______________________________________________ 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.