diff --git a/DESCRIPTION b/DESCRIPTION index b045f67..a0db7d9 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -14,7 +14,7 @@ Description: Makes it possible to create an internally consistent subset. The user can then install packages from this repository directly, rather than from CRAN. This is useful in production settings, e.g. server behind a firewall, or remote locations with slow broadband access. -Version: 0.2.2 +Version: 0.2.4 URL: https://github.com/RevolutionAnalytics/miniCRAN BugReports: https://github.com/RevolutionAnalytics/miniCRAN/issues Date: 2015-03-26 diff --git a/inst/doc/miniCRAN-dependency-graph.R b/inst/doc/miniCRAN-dependency-graph.R index d8ef3e0..1c53867 100644 --- a/inst/doc/miniCRAN-dependency-graph.R +++ b/inst/doc/miniCRAN-dependency-graph.R @@ -3,18 +3,18 @@ library("miniCRAN") ## ----pkgdep-------------------------------------------------------------- tags <- "chron" -pkgDep(tags) +pkgDep(tags, availPkgs = cranJuly2014) ## ----makeDepGraph, warning=FALSE----------------------------------------- -dg <- makeDepGraph(tags, enhances=TRUE) +dg <- makeDepGraph(tags, enhances=TRUE, availPkgs = cranJuly2014) set.seed(1) plot(dg, legendPosition = c(-1, 1), vertex.size=20) ## ----so-tags, warning=FALSE, fig.width=10, fig.height=10----------------- tags <- c("ggplot2", "data.table", "plyr", "knitr", "shiny", "xts", "lattice") -pkgDep(tags, suggests = TRUE, enhances=FALSE) +pkgDep(tags, suggests = TRUE, enhances=FALSE, availPkgs = cranJuly2014) -dg <- makeDepGraph(tags, enhances=TRUE) +dg <- makeDepGraph(tags, enhances=TRUE, availPkgs = cranJuly2014) set.seed(1) plot(dg, legendPosition = c(-1, -1), vertex.size=10, cex=0.7) diff --git a/inst/doc/miniCRAN-dependency-graph.html b/inst/doc/miniCRAN-dependency-graph.html index a2ed658..44025c8 100644 --- a/inst/doc/miniCRAN-dependency-graph.html +++ b/inst/doc/miniCRAN-dependency-graph.html @@ -233,7 +233,7 @@
tags <- "chron"
-pkgDep(tags)
+pkgDep(tags, availPkgs = cranJuly2014)
## [1] "chron" "RColorBrewer" "dichromat" "munsell"
@@ -244,7 +244,7 @@ A worked example using the package chron
To create an igraph plot of the dependencies, use the function makeDepGraph()
and plot the results:
-dg <- makeDepGraph(tags, enhances=TRUE)
+dg <- makeDepGraph(tags, enhances=TRUE, availPkgs = cranJuly2014)
## Loading required namespace: igraph
@@ -254,7 +254,7 @@ A worked example using the package chron
plot(dg, legendPosition = c(-1, 1), vertex.size=20)
-
+
Note how the dependencies expand to zoo
(enhanced), scales
and ggplot
(suggested) and then recursively from there to get all the Imports
and LinkingTo
dependencies.
@@ -263,7 +263,7 @@ An example with multiple input packages
As a final example, create a dependency graph of seven very popular R packages:
tags <- c("ggplot2", "data.table", "plyr", "knitr", "shiny", "xts", "lattice")
-pkgDep(tags, suggests = TRUE, enhances=FALSE)
+pkgDep(tags, suggests = TRUE, enhances=FALSE, availPkgs = cranJuly2014)
## [1] "ggplot2" "data.table" "plyr" "knitr"
@@ -271,30 +271,29 @@ An example with multiple input packages
## [9] "gtable" "reshape2" "scales" "proto"
## [13] "MASS" "Rcpp" "stringr" "RColorBrewer"
## [17] "dichromat" "munsell" "labeling" "colorspace"
-## [21] "chron" "evaluate" "formatR" "highr"
-## [25] "markdown" "mime" "httpuv" "RJSONIO"
-## [29] "xtable" "htmltools" "R6" "zoo"
+## [21] "evaluate" "formatR" "highr" "markdown"
+## [25] "mime" "httpuv" "caTools" "RJSONIO"
+## [29] "xtable" "htmltools" "bitops" "zoo"
## [33] "SparseM" "survival" "Formula" "latticeExtra"
-## [37] "cluster" "rpart" "nnet" "acepack"
-## [41] "foreign" "maps" "sp" "mvtnorm"
-## [45] "TH.data" "sandwich" "codetools" "nlme"
-## [49] "Matrix" "bit" "iterators" "foreach"
-## [53] "yaml" "caTools" "bitops" "timeDate"
-## [57] "quadprog" "Hmisc" "BH" "quantreg"
-## [61] "mapproj" "hexbin" "maptools" "multcomp"
-## [65] "testthat" "mgcv" "reshape" "fastmatch"
-## [69] "bit64" "abind" "doMC" "itertools"
-## [73] "testit" "rgl" "rmarkdown" "XML"
-## [77] "RCurl" "Cairo" "timeSeries" "tseries"
-## [81] "its" "fts" "tis" "KernSmooth"
+## [37] "cluster" "maps" "sp" "foreign"
+## [41] "mvtnorm" "TH.data" "sandwich" "nlme"
+## [45] "Matrix" "bit" "codetools" "iterators"
+## [49] "timeDate" "quadprog" "Hmisc" "BH"
+## [53] "quantreg" "mapproj" "hexbin" "maptools"
+## [57] "multcomp" "testthat" "mgcv" "chron"
+## [61] "reshape" "fastmatch" "bit64" "abind"
+## [65] "foreach" "doMC" "itertools" "testit"
+## [69] "rgl" "XML" "RCurl" "Cairo"
+## [73] "timeSeries" "tseries" "its" "fts"
+## [77] "tis" "KernSmooth"
-dg <- makeDepGraph(tags, enhances=TRUE)
+dg <- makeDepGraph(tags, enhances=TRUE, availPkgs = cranJuly2014)
set.seed(1)
plot(dg, legendPosition = c(-1, -1), vertex.size=10, cex=0.7)
-
+