tests/testthat/test-getPathwayInfo.R

library(rWikiPathways)
context("Pathway")

test_that("get WP4", {
  info = getPathwayInfo("WP4")
  expect_that(info$id, equals("WP4"))
})

test_that("get WP4 (again)", {
  info = getPathwayInfo(pathway="WP4")
  expect_that(info$id, equals("WP4"))
})

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.