I'm glad this works for you. Myself, I would use paste() to collect the output
to a single variable, then use one instance of cat() to write the whole thing
to file. This saves you retyping ... file=treemap.html, append=TRUE,sep='\n'
... more than once and prevents errors such as the one you
I have the following code:
setwd(C:/Users/Administrator/Desktop)
cat(!DOCTYPE html,file=treemap.html, append=TRUE,sep='\n')
cat(html,file=treemap.html, append=TRUE,sep='\n')
cat(body,file=treemap.html, append=TRUE,sep='\n')
cat(h1TreeMap/h1,file=treemap.html, append=TRUE,sep='\n')
cat(img
I forgot to use fie= treemap.html :)
On 04 Jun 2015, at 10:53, valerio orfano ingorf...@hotmail.com wrote:
I have the following code:
setwd(C:/Users/Administrator/Desktop)
cat(!DOCTYPE html,file=treemap.html, append=TRUE,sep='\n')
cat(html,file=treemap.html, append=TRUE,sep='\n')
] On Behalf Of Ista Zahn
Sent: Wednesday, June 03, 2015 1:46 PM
To: MacQueen, Don
Cc: r-help@r-project.org
Subject: Re: [R] R convert pdf/png to html
Or try the brand-new way:
http://www.r-pkg.org/search.html?q=html
--Ista
On Wed, Jun 3, 2015 at 1:06 PM, MacQueen, Don macque...@llnl.gov wrote
... as in: the png exists in a directory that is accessible to the server?
That would be as simple as creating a HTML document with the following contents:
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01//EN
http://www.w3.org/TR/html4/strict.dtd;
html
headtitle=Image/head
bodyimg
When it's as simple as in Boris's example, just use cat() statements.
Otherwise, go to CRAN, find the packages page (Table of available
packages, sorted by name), and search for html
-Don
--
Don MacQueen
Lawrence Livermore National Laboratory
7000 East Ave., L-627
Livermore, CA 94550
Hi Boris and thanx a lot
Which library should i be using to create html in R?
rgds valerio
On 03 Jun 2015, at 18:08, Boris Steipe boris.ste...@utoronto.ca wrote:
... as in: the png exists in a directory that is accessible to the server?
That would be as simple as creating a HTML document
Or try the brand-new way:
http://www.r-pkg.org/search.html?q=html
--Ista
On Wed, Jun 3, 2015 at 1:06 PM, MacQueen, Don macque...@llnl.gov wrote:
When it's as simple as in Boris's example, just use cat() statements.
Otherwise, go to CRAN, find the packages page (Table of available
packages,
8 matches
Mail list logo