Nothing
library(biomaRt)
cache <- file.path(tempdir(), "biomart_cache_test")
Sys.setenv(BIOMART_CACHE = cache)
context('Testing martCheck function')
test_that("martCheck() catches bad input", {
expect_error(biomaRt:::martCheck())
expect_error(biomaRt:::martCheck("INVALID_OBJECT"))
ensembl <- useMart("ensembl")
expect_error(biomaRt:::martCheck(ensembl),
regex = "No dataset selected, please select a dataset first")
ensembl <- useDataset("hsapiens_gene_ensembl",mart=ensembl)
expect_error(biomaRt:::martCheck(ensembl, biomart = "Not_real_mart"),
regexp = "This function only works when used with")
})
test_that('martCheck() is quiet for valid input', {
ensembl <- useEnsembl('ensembl', dataset = 'hsapiens_gene_ensembl')
expect_silent(biomaRt:::martCheck(ensembl,
biomart = "ENSEMBL_MART_ENSEMBL"))
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.