inst/unitTests/test_TestFiles.R

annotation <- system.file("extdata/sapFinder_test_ensGene.txt",
                        package="sapFinder")
test_AnnotationFileColumnNumber <-function()
{
    con<-file(annotation,"r")
    line<-readLines(con,n=1)
    elems<-unlist(strsplit(line,"\t"))
    checkEquals(length(elems),16)
    close(con)
}

Try the sapFinder package in your browser

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

sapFinder documentation built on Nov. 8, 2020, 5:59 p.m.