Skip to content

Commit

Permalink
Bump version to 0.2.11
Browse files Browse the repository at this point in the history
  • Loading branch information
andrie committed Jan 15, 2018
1 parent 688b9e0 commit 5075147
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 18 deletions.
6 changes: 3 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
Package: miniCRAN
Date: 2018-01-15
Version: 0.2.11
Authors@R: c(person("Microsoft Corporation", role="cph"), person("Andrie", "de
Vries", role=c("aut", "cre", "cph"), email="[email protected]"),
person("Alex", "Chubaty", role="ctb", email="[email protected]"))
License: GPL-2
Copyright: Microsoft Corporation
Copyright: Microsoft Corporation, Andrie de Vries
Title: Create a Mini Version of CRAN Containing Only Selected Packages
Description: Makes it possible to create an internally consistent
repository consisting of selected packages from CRAN-like repositories.
Expand All @@ -12,8 +14,6 @@ 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 (or zero) Internet access.
Date: 2017-12-27
Version: 0.2.11.9000
URL: https://github.com/andrie/miniCRAN
BugReports: https://github.com/andrie/miniCRAN/issues
SystemRequirements: Imports the `curl` and `XML` packages. These have system
Expand Down
9 changes: 7 additions & 2 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
miniCRAN v0.2.11.9000 (Release date: in development)
miniCRAN v0.2.11 (Release date: in development)
================

New features:

* Used `pkgdown` to build documentation site
* None

Other changes:

* Use `pkgdown` to build documentation site
* Speed up unit testing by mocking internal functions


miniCRAN v0.2.10.9000
Expand Down
2 changes: 1 addition & 1 deletion vignettes/miniCRAN-introduction.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pkgList
# dir.create(pth <- file.path(tempdir(), "miniCRAN"))
#
# # Make repo for source and win.binary
# makeRepo(pkgList, path=pth, repos=revolution, type=c("source", "win.binary"))
# makeRepo(pkgList, path = pth, repos = revolution, type = c("source", "win.binary"))

## ----make-repo-3, eval=FALSE---------------------------------------------
# # List all files in miniCRAN
Expand Down
6 changes: 3 additions & 3 deletions vignettes/miniCRAN-introduction.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<meta name="author" content="Andrie de Vries and Alex Chubaty" />

<meta name="date" content="2017-12-26" />
<meta name="date" content="2018-01-15" />

<title>Using miniCRAN to create a local CRAN repository</title>

Expand Down Expand Up @@ -70,7 +70,7 @@

<h1 class="title toc-ignore">Using miniCRAN to create a local CRAN repository</h1>
<h4 class="author"><em>Andrie de Vries and Alex Chubaty</em></h4>
<h4 class="date"><em>December 26, 2017</em></h4>
<h4 class="date"><em>January 15, 2018</em></h4>



Expand All @@ -93,7 +93,7 @@ <h4 class="date"><em>December 26, 2017</em></h4>
<span class="kw">dir.create</span>(pth &lt;-<span class="st"> </span><span class="kw">file.path</span>(<span class="kw">tempdir</span>(), <span class="st">&quot;miniCRAN&quot;</span>))

<span class="co"># Make repo for source and win.binary</span>
<span class="kw">makeRepo</span>(pkgList, <span class="dt">path=</span>pth, <span class="dt">repos=</span>revolution, <span class="dt">type=</span><span class="kw">c</span>(<span class="st">&quot;source&quot;</span>, <span class="st">&quot;win.binary&quot;</span>))</code></pre></div>
<span class="kw">makeRepo</span>(pkgList, <span class="dt">path =</span> pth, <span class="dt">repos =</span> revolution, <span class="dt">type =</span> <span class="kw">c</span>(<span class="st">&quot;source&quot;</span>, <span class="st">&quot;win.binary&quot;</span>))</code></pre></div>
<p>Investigate the repository file structure:</p>
<div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r"><span class="co"># List all files in miniCRAN</span>
<span class="kw">list.files</span>(pth, <span class="dt">recursive =</span> <span class="ot">TRUE</span>, <span class="dt">full.names =</span> <span class="ot">FALSE</span>)</code></pre></div>
Expand Down
12 changes: 6 additions & 6 deletions vignettes/miniCRAN-non-CRAN-repos.R
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
## ----setup---------------------------------------------------------------
# Wrapper around available.packages ---------------------------------------

index <- function(url, type = "source", filters = NULL, head = 5, cols = c("Package", "Version")) {
contribUrl <- contrib.url(url, type = type)
p <- available.packages(contribUrl, type = type, filters = filters)
p[1:head, cols]
}


## ----CRAN, eval=FALSE----------------------------------------------------
# CRAN <- "http://cran.r-project.org"
Expand All @@ -15,7 +15,7 @@ index <- function(url, type = "source", filters = NULL, head = 5, cols = c("Pack
## ----revo, eval=FALSE----------------------------------------------------
# revoStable <- "http://packages.revolutionanalytics.com/cran/3.1/stable"
# index(revoStable)
#
#
# revoMirror <- "http://cran.revolutionanalytics.com"
# index(revoMirror)

Expand All @@ -30,10 +30,10 @@ index <- function(url, type = "source", filters = NULL, head = 5, cols = c("Pack
# evalq(source("http://bioconductor.org/biocLite.R", local = TRUE), env)
# biocinstallRepos()
# })
#
#
# bioc
# bioc[grep("BioC", names(bioc))]
#
#
#
#
# index(bioc["BioCsoft"])

6 changes: 3 additions & 3 deletions vignettes/miniCRAN-non-CRAN-repos.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<meta name="author" content="Andrie de Vries" />

<meta name="date" content="2017-12-26" />
<meta name="date" content="2018-01-15" />

<title>Using repositories other than CRAN with miniCRAN</title>

Expand Down Expand Up @@ -70,7 +70,7 @@

<h1 class="title toc-ignore">Using repositories other than CRAN with miniCRAN</h1>
<h4 class="author"><em>Andrie de Vries</em></h4>
<h4 class="date"><em>December 26, 2017</em></h4>
<h4 class="date"><em>January 15, 2018</em></h4>



Expand All @@ -79,7 +79,7 @@ <h4 class="date"><em>December 26, 2017</em></h4>
<p>To simplify the code to show the salient features, we use a little helper function, <code>index()</code> that is a simple wrapper around <code>available.packages()</code>:</p>
<div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r"><span class="co"># Wrapper around available.packages ---------------------------------------</span>

index &lt;-<span class="st"> </span><span class="cf">function</span>(url, <span class="dt">type =</span> <span class="st">&quot;source&quot;</span>, <span class="dt">filters =</span> <span class="ot">NULL</span>, <span class="dt">head =</span> <span class="dv">5</span>, <span class="dt">cols =</span> <span class="kw">c</span>(<span class="st">&quot;Package&quot;</span>, <span class="st">&quot;Version&quot;</span>)){
index &lt;-<span class="st"> </span><span class="cf">function</span>(url, <span class="dt">type =</span> <span class="st">&quot;source&quot;</span>, <span class="dt">filters =</span> <span class="ot">NULL</span>, <span class="dt">head =</span> <span class="dv">5</span>, <span class="dt">cols =</span> <span class="kw">c</span>(<span class="st">&quot;Package&quot;</span>, <span class="st">&quot;Version&quot;</span>)) {
contribUrl &lt;-<span class="st"> </span><span class="kw">contrib.url</span>(url, <span class="dt">type =</span> type)
p &lt;-<span class="st"> </span><span class="kw">available.packages</span>(contribUrl, <span class="dt">type =</span> type, <span class="dt">filters =</span> filters)
p[<span class="dv">1</span><span class="op">:</span>head, cols]
Expand Down

0 comments on commit 5075147

Please sign in to comment.