tests/testthat/test-getCurationTags.R

library(rWikiPathways)
context("Annotation")

test_that("get by WPID", {
    tags = getCurationTags('WP554')
    expect_gt(length(tags),0)
})

test_that("get by tag name", {
    tags = getEveryCurationTag('Curation:FeaturedPathway')
    expect_gt(length(tags), 0)
})

test_that("find by tag name", {
    pathways = getPathwaysByCurationTag('Curation:FeaturedPathway')
    expect_gt(length(pathways), 0)
})

Try the rWikiPathways package in your browser

Any scripts or data that you put into this service are public.

rWikiPathways documentation built on Feb. 28, 2021, 2:01 a.m.