Skip to content
Prev 244009 / 398506 Next

Help with capture.output

Hi 

Im trying to capture the output of HTML but dont really get what I want

As an example:
This gives me the output of toReturn as an vector:
[1] ""                                                       
 [2] ""                                                       
 [3] "<p align= center >"                                     
 [4] "<table cellspacing=0 border=1>"                         
 [5] "<caption align=bottom class=captiondataframe></caption>"
 [6] "<tr><td>"                                               
 [7] "\t<table border=0 class=dataframe>"                     
 [8] "\t<tbody> "                                             
 [9] "\t<tr class= firstline > "                              
[10] "\t\t<th>&nbsp;  </th>"                                  
[11] "\t\t<th>a  </th>"                                       
[12] "\t\t<th>b  </th>"                                       
[13] "\t\t<th>c</th> "                                        
[14] "\t</tr> "                
.
.
.


But what I want is a continues string of the code on just one row:
[1] "<p align= center > <table cellspacing=0 border=1> <caption align=bottom
class=captiondataframe></caption> ..."

Anyone know a way I can accomplish this?

/Joel