[R] trouble with html() in Hmisc

Mark Difford mark_difford at yahoo.co.uk
Sat Oct 3 15:17:25 CEST 2009


Hi Liviu,

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

This has nothing to do with Hmisc or hevea. In the header/preample of all
LyX files you will, for instance, find the following:

## -----
%% LyX 1.6.2 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[english]{article}
.
.
.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
%% Because html converters don't know tabularnewline
\providecommand{\tabularnewline}{\\}

Regards, Mark.


Liviu Andronic wrote:
> 
> 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
> 
> ______________________________________________
> R-help at 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.
> 
> 

-- 
View this message in context: http://www.nabble.com/trouble-with-html%28%29-in-Hmisc-tp25721612p25728656.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list