R/report.R

Defines functions endReport startReport

Documented in endReport startReport

startReport <- function(outputpath) {
  dir.create(outputpath, showWarnings = FALSE)
  con <- file(sprintf("%s/index.html", outputpath), "wb")
  writeLines("<html>", con)
  writeLines("<frameset cols=\"25%,75%\">", con)
  writeLines("  <frame src=\"frame_left.html\">", con)
  writeLines("  <frame src=\"frame_right.html\" name=showframe>", con)
  writeLines("</frameset>", con)
  writeLines("</html>", con)
  close(con)

  report = openPage(sprintf("%s/frame_left.html", outputpath))
  return(report)
}

endReport <- function(report) {
  closePage(report, splash=FALSE)
}

Try the RNAinteract package in your browser

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

RNAinteract documentation built on Nov. 8, 2020, 5:28 p.m.