Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sand function to install suggested packages (#9).
- Loading branch information
1 parent
9a4eeb6
commit aed350a
Showing
2 changed files
with
26 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#' sand | ||
#' | ||
#' @name sand | ||
#' @docType package | ||
NULL | ||
|
||
install_sand_packages <- function() { | ||
pkgs <- strsplit(packageDescription("sand")$Suggests, "[, \n]+")[[1]] | ||
source("http://bioconductor.org/biocLite.R") | ||
biocLite(pkgs, suppressUpdates=TRUE, suppressAutoUpdate=TRUE) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
\name{install_sand_packages} | ||
\alias{install_sand_packages} | ||
\title{Install all packages used in the book} | ||
\description{This function makes it easy to download and install | ||
all R packages that are used in the book \sQuote{Statistical Analysis | ||
of Network Data with R}. | ||
} | ||
\usage{ | ||
install_sand_packages() | ||
} | ||
\details{ | ||
The function uses the BioConductor installer, as this can | ||
install both all required BioConductor and CRAN packages. | ||
} | ||
\value{ | ||
Returns the names of the installed packages, invisibly. | ||
} | ||
\author{ | ||
Gabor Csardi \email{csardi.gabor@gmail.com} | ||
} |