test_bgzip_openclose <- function()
{
## trying to determine that file handle has been cleaned up
checkIdentical(TRUE, dir.create(d <- tempfile()))
fin <- file.path(d, "in")
fout <- file.path(d, "out")
writeLines("123", con=fin)
bgzip(fin, fout)
checkIdentical(TRUE, file.remove(fin))
checkIdentical(TRUE, file.remove(fout))
checkIdentical(0L, unlink(d, recursive=TRUE))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.