Skip to content

Commit

Permalink
comment out an example
Browse files Browse the repository at this point in the history
  • Loading branch information
averissimo committed Jul 24, 2018
1 parent 5a51f3d commit 8b75d20
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 2 additions & 1 deletion R/coding.genes.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
#' @return a table with gene information
#' @export
#' @examples
#' coding.genes()
#' # This can take a few minutes depending on the connection
#' # coding.genes()
coding.genes <- function (verbose = TRUE)
{
ensembl <- biomaRt::useMart("ensembl", host = 'http://www.ensembl.org')
Expand Down
3 changes: 2 additions & 1 deletion man/coding.genes.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions tests/testthat/test-coding.genes.R
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
context("coding.genes")

loose.rock::show.message(FALSE)
loose.rock::run.cache(coding.genes, verbose = FALSE)

test_that("coding genes retrieves some genes", {
genes <- loose.rock::run.cache(coding.genes, verbose = FALSE)
genes <- coding.genes(verbose = FALSE)
expect_true(all(c('BRCA1', 'BRCA2', 'CHADL', 'BTBD8', 'BCAS2', 'AGAP1') %in% genes$external_gene_name))
})

0 comments on commit 8b75d20

Please sign in to comment.