validConnection: Determine connection validity

Description Usage Arguments Value See Also Examples

View source: R/internal.R

Description

Determine if a connection to an HTML page can be written to or not.

Usage

1
validConnection(htmlRep)

Arguments

htmlRep

An object of class HTMLReport.

Value

Returns TRUE if the page can be written to. If the file handle has been closed, then FALSE.

See Also

link{HTMLReport-class}

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
my.df <- data.frame(EGID = c("103", "104", "105", "106", "107"),
                    RPKM = c(4, 5, 3, 100, 75),
                    DE = c("Yes", "Yes", "No", "No", "No"))
html.report <- makeOldHTMLReport(shortName = "my_html_file",
     reportDirectory = "reportDirectory")
publish(my.df, html.report)
validConnection(html.report) # Returns TRUE

finish(html.report)
validConnection(html.report) # Returns FALSE

Bioconductor-mirror/ReportingTools documentation built on July 28, 2017, 4:28 a.m.