-
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.
* dev: Bump version to 0.2.10; Change maintainer to [email protected] Update NEWS and README Rebuild vignettes Added note on system requirements (#98) Fix type errors in checkVersions() that caused addPackages() to fail. #99 Add missing space in error message for unknown type update NEWS (#72) add MRAN url as package option (close #72) update NEWS Fixing typo in non-CRAN vignette Fixing typos
- Loading branch information
Showing
46 changed files
with
799 additions
and
1,033 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,6 +1,6 @@ | ||
Package: miniCRAN | ||
Authors@R: c(person("Microsoft Corporation", role="cph"), person("Andrie", "de | ||
Vries", role=c("aut", "cre"), email="adevries@microsoft.com"), | ||
Vries", role=c("aut", "cre"), email="apdevries@gmail.com"), | ||
person("Alex", "Chubaty", role="ctb", email="[email protected]")) | ||
License: GPL-2 | ||
Copyright: Microsoft Corporation | ||
|
@@ -11,11 +11,13 @@ Description: Makes it possible to create an internally consistent | |
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 | ||
behind a firewall, or remote locations with slow broadband access. | ||
Date: 2017-07-20 | ||
Version: 0.2.9 | ||
behind a firewall, or remote locations with slow (or zero) Internet access. | ||
Date: 2017-10-20 | ||
Version: 0.2.10 | ||
URL: https://github.com/RevolutionAnalytics/miniCRAN | ||
BugReports: https://github.com/RevolutionAnalytics/miniCRAN/issues | ||
SystemRequirements: Imports the `curl` and `XML` packages. These have system | ||
requirements on `libxml2-devel`, `libcurl-devel` and `openssl-devel`. | ||
Imports: | ||
graphics, | ||
httr, | ||
|
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,9 +1,9 @@ | ||
MRAN <- function(snapshot){ | ||
url <- "https://mran.microsoft.com" | ||
if(missing("snapshot") || is.null(snapshot)){ | ||
url | ||
MRAN <- function(snapshot) { | ||
url <- getOption("minicran.mran") | ||
if (missing("snapshot") || is.null(snapshot)) { | ||
url | ||
} else { | ||
sprintf("%s/snapshot/%s", url, snapshot) | ||
} | ||
} | ||
CRAN <- function()getOption("repos")[1] | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,20 @@ | ||
# globals <- new.env(parent=emptyenv(), hash=TRUE) | ||
# globals$have_RCurl <- require("RCurl") | ||
|
||
.onLoad <- function(libname, pkgname) { | ||
mran.url <- if (getRversion() >= "3.2.2") { | ||
"https://mran.microsoft.com" ## use HTTPS | ||
} else { | ||
"http://mran.microsoft.com" ## use HTTP | ||
} | ||
|
||
## set options using the approach used by devtools | ||
opts <- options() | ||
opts.miniCRAN <- list( | ||
minicran.mran = mran.url | ||
) | ||
toset <- !(names(opts.miniCRAN) %in% names(opts)) | ||
if (any(toset)) options(opts.miniCRAN[toset]) | ||
|
||
invisible() | ||
} |
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.
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
Oops, something went wrong.