[R] R2HTML giving "NULL" in output

Nick_F nickflyger at gmail.com
Mon Aug 2 01:21:51 CEST 2010


Dear List,

I am using R 2.11.1 and R2HTML 2.1. I am able to write output to an HTML
file but after every line of output I get a line saying NULL.  R2HTML seems
to be including <p class='character'>NULL</p> after each entry. 

Here is an example of my R code and the source of the HTML...

HTMLStart(outdir=OutPath, file="M1000.Report", extension="html", echo=F,
HTMLframe=F)
HTML.title("Variation in Elite Male Track Cyclists 2005-06: 1000m TT", HR=1)
# Main Title
	HTML.title("Data Exploration", HR=2) # Secondary Title
		HTML.title("Summary Tables", HR=3) # Section Header
				HTML(summary(M1000.G)) # Display table
HTMLStop() # close output to HTML file

Produces (this is only a section of the offending code):
...
<body onload="translate()" bgcolor= FFFFFF background="" > 
 <h1 > Variation in Elite Male Track Cyclists 2005-06: 1000m TT</h1> 
&nbsp  
<p class='character'>NULL</p> 
 
 <h2 > Data Exploration</h2> 
&nbsp  
<p class='character'>NULL</p> 
 
 <h3 > Summary Tables</h3> 
&nbsp  
<p class='character'>NULL</p> 
...

How can I stop R2HTML writing this annoying NULL?

Regards,
Nick
-- 
View this message in context: http://r.789695.n4.nabble.com/R2HTML-giving-NULL-in-output-tp2309776p2309776.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list