## A bit of a hack to not have a package dependency on hgu95av2
## but need to fiddle w/ the warn level to not fail the example anyways.
curWarn <- getOption("warn")
options(warn=0)
on.exit(options(warn=curWarn), add=TRUE)
if (require(hgu95av2.db) & require(idiogram)) {
data(Hs.cytoband)
z <- buildChromLocation.2("hgu95av2.db",major="arms")
} else print("This example requires the hgu95av2.db data package")
Run the code above in your browser using DataCamp Workspace