as_pkgrefs(sessionInfo())
if (interactive()) {
require(rang)
graph <- resolve(as_pkgrefs(sessionInfo()))
as_pkgrefs(c("rtoot"))
as_pkgrefs(c("rtoot", "S4Vectors")) ## this gives cran::S4Vectors and is not correct.
as_pkgrefs(c("rtoot", "S4Vectors"), bioc_version = "3.3") ## This gives bioc::S4Vectors
}
Run the code above in your browser using DataLab