inst/tests/test.R

library(rtracklayer)
files <- dir(system.file("tests", package = "rtracklayer"), pattern = "[^R~]$",
             full.names=TRUE)
testExport <- function(file) {
  track <- import(file)
  export(track, format = "ucsc")
}
options(error=recover)
sapply(files, testExport)

## test GRanges imports
sapply(files[-8], import)

Try the rtracklayer package in your browser

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

rtracklayer documentation built on Nov. 8, 2020, 6:50 p.m.