[R] trouble with html() in Hmisc

Liviu Andronic landronimirc at gmail.com
Fri Oct 2 21:53:42 CEST 2009

Dear all
On my system html() conversion of a `latex()' object fails. Follows a
dummy example:
> require(Hmisc)
> data(Angell)
> .object <- cor(Angell[,1:2], use="complete.obs")
> tmp <- latex(.object, cdec=c(2,2), title="")
> class(tmp)
[1] "latex"
> html(tmp)
/tmp/RtmprfPwzw/file7e72f7a7.tex:9: Warning: Command not found: \tabularnewline
Giving up command: \@hevea at amper
/tmp/RtmprfPwzw/file7e72f7a7.tex:11: Error while reading LaTeX:
	This array/tabular column has no specification

I have hevea-1.10 installed on Debian (according to the help page, it
performs the conversion). Attached is teh produced .tex file. Is this
a bug or would there be a way to work around this behaviour?
Thank you

> sessionInfo()
R version 2.9.2 (2009-08-24)


attached base packages:
[1] datasets  grDevices tcltk     splines   graphics  utils     stats
[8] methods   base

other attached packages:
 [1] fortunes_1.3-6           RcmdrPlugin.Export_0.3-0 Rcmdr_1.5-2
 [4] car_1.2-15               hints_1.0.1-1            boot_1.2-39
 [7] relimp_1.0-1             xtable_1.5-5             Hmisc_3.7-0
[10] survival_2.35-7

loaded via a namespace (and not attached):
[1] cluster_1.12.0  grid_2.9.2      lattice_0.17-25 tools_2.9.2
> system("uname -a")
Linux debian-liv 2.6.30-1-amd64 #1 SMP Sat Aug 15 18:09:19 UTC 2009
x86_64 GNU/Linux

Do you know how to read?
Do you know how to write?

More information about the R-help mailing list