[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
Adios


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
Liviu


> sessionInfo()
R version 2.9.2 (2009-08-24)
x86_64-pc-linux-gnu

locale:
LC_CTYPE=en_GB.UTF-8;LC_NUMERIC=C;LC_TIME=en_GB.UTF-8;LC_COLLATE=en_GB.UTF-8;LC_MONETARY=C;LC_MESSAGES=en_GB.UTF-8;LC_PAPER=en_GB.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_GB.UTF-8;LC_IDENTIFICATION=C

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?
http://www.alienetworks.com/srtest.cfm
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail


More information about the R-help mailing list