R/bhts2HTML.R

Defines functions bhts2HTML

Documented in bhts2HTML

bhts2HTML = function(dat, dir, fname, title=NULL, bgcolor="#BBBBEE"){
  dat = data.frame(compound=rownames(dat), dat)
  rownames(dat) = NULL
  target = HTMLInitFile(dir, filename=fname, Title=title, BackGroundColor=bgcolor)
  HTML(xtable(dat), file=target)
  HTMLEndFile()
}
        

Try the BHTSpack package in your browser

Any scripts or data that you put into this service are public.

BHTSpack documentation built on Feb. 8, 2021, 5:07 p.m.