Learn R Programming

ReportingTools (version 2.12.2)

validConnection: Determine connection validity

Description

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

Usage

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

Run this code

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

Run the code above in your browser using DataLab