-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
54 changed files
with
537 additions
and
901 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,31 +1,35 @@ | ||
Package: miniCRAN | ||
Authors@R: c(person("Revolution Analytics", role="aut"), person("Andrie", "de | ||
Vries", role=c("aut", "cre"), email="andrie@revolutionanalytics.com"), | ||
Vries", role=c("aut", "cre"), email="adevries@microsoft.com"), | ||
person("Alex", "Chubaty", role="ctb", email="[email protected]")) | ||
License: GPL-2 | ||
Copyright: Revolution Analytics | ||
Copyright: Microsoft Corporation | ||
Title: Create a Mini Version of CRAN Containing Only Selected Packages | ||
LazyData: true | ||
LazyLoad: true | ||
Description: Makes it possible to create an internally consistent | ||
repository consisting of selected packages from CRAN-like repositories. | ||
The user specifies a set of desired packages, and miniCRAN recursively | ||
reads the dependency tree for these packages, then downloads only this | ||
subset. The user can then install packages from this repository directly, | ||
rather than from CRAN. This is useful in production settings, e.g. server | ||
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.4 | ||
Version: 0.2.5 | ||
URL: https://github.com/RevolutionAnalytics/miniCRAN | ||
BugReports: https://github.com/RevolutionAnalytics/miniCRAN/issues | ||
Date: 2015-03-26 | ||
Date: 2016-04-12 | ||
Imports: | ||
tools, | ||
XML, | ||
httr, | ||
methods, | ||
utils | ||
utils, | ||
graphics, | ||
stats | ||
Suggests: | ||
testthat(>= 0.9), | ||
knitr, | ||
rmarkdown, | ||
igraph | ||
VignetteBuilder: knitr | ||
RoxygenNote: 5.0.1 |
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
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,9 @@ | ||
MRAN <- function(snapshot){ | ||
url <- "http://mran.microsoft.com" | ||
if(missing("snapshot") || is.null(snapshot)){ | ||
url | ||
} else { | ||
sprintf("%s/snapshot/%s", url, snapshot) | ||
} | ||
} | ||
CRAN <- function()getOption("repos")[1] |
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
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
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
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
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
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
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
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,16 @@ | ||
# helper functions for testing | ||
|
||
# Returns TRUE if a URL can be accessed | ||
is.online <- function(url = MRAN()){ | ||
z <- tryCatch(suppressWarnings(readLines(url, n = 10, warn = FALSE)), | ||
error = function(e)e | ||
) | ||
if(inherits(z, "error")) return(FALSE) | ||
TRUE | ||
} | ||
|
||
# Interrupt the test if url can not be reached | ||
skip_if_offline <- function(url = MRAN()){ | ||
if(!is.online(url)) testthat::skip("offline") | ||
} | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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,5 @@ | ||
\dontrun{ | ||
getCranDescription(c("igraph", "ggplot2", "XML"), | ||
repos=c(CRAN="http://cran.revolutionanalytics.com") | ||
repos = c(CRAN = "http://mran.microsoft.com") | ||
) | ||
} |
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
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
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
Oops, something went wrong.