R/openHtmlPage.R

Defines functions closeHtmlPage openHtmlPage

Documented in closeHtmlPage openHtmlPage

openHtmlPage = function(name, title="") {
    name = gsub("\\.html$", "", name)
    con = file(paste(name, ".html", sep=""), open="wt")
    writeLines(paste("<html><head><title>", title,
                     "</title></head><body style=\"font-family: ",
                     "helvetica,arial,sans-serif;\">", sep=""), con)
    return(con)
}

closeHtmlPage = function(con) {
    writeLines("</body></html>", con)
    close(con)
}
Bioconductor/geneplotter documentation built on Nov. 2, 2024, 7:25 a.m.