inst/unitTests/test_select.R

# check select method for MeSHDb class"

.MeSHDb <- setRefClass("MeSHDb", contains="AnnotationDb")

.dbconn <- RSQLite::dbConnect(
            RSQLite::SQLite(),
            paste0(
              system.file(c("inst", "DBschemas"), package="MeSHDbi"),
              "/MeSH.XXX.eg.db.sqlite"
            )
          )

obj <- .MeSHDb$new(conn=.dbconn, packageName="test")

checkEquals(length(is(obj)), 8)

Try the MeSHDbi package in your browser

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

MeSHDbi documentation built on Nov. 8, 2020, 5:05 p.m.