# NOT RUN {
availPkgs <- cranJuly2014
# }
# NOT RUN {
availPkgs <- pkgAvail(
repos = c(CRAN = getOption("minicran.mran")),
type = "source"
)
# }
# NOT RUN {
# Create dependency graph using stored database of available packages
p <- makeDepGraph(
c("ggplot2", "forecast"),
availPkgs = availPkgs
)
if(require(igraph)) plot(p)
# }
# NOT RUN {
# Create dependency graph using newly retrieved database from CRAN
p <- makeDepGraph(
c("ggplot2", "forecast"),
repos = c(CRAN = getOption("minicran.mran")),
type = "source"
)
if(require(igraph)) plot(p)
# }
Run the code above in your browser using DataLab