Skip to content
forked from andrie/miniCRAN

R package to create internally consistent, mini version of CRAN

License

Notifications You must be signed in to change notification settings

jamieo-ms/miniCRAN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

miniCRAN

Build status

master: Build Status

dev: Build Status

R package to create internally consistent, mini version of CRAN

Introduction

At the end of 2013, CRAN consisted of more than 5000 packages. Many organisations need to maintain a private mirror of CRAN, but with only a subset of packages that are relevant to them.

miniCRAN makes this possible by recursively reading the dependency tree for a given set of packages, then downloading only this subset.

Important functions:

  • Find package dependencies: pkgDep()
  • Make repository (with or without downloading packages): makeRepo()

Installation:

Get the stable version from CRAN:

install.packages("miniCRAN")
library("miniCRAN")

Get a development version from github:

# Use `devtools` to install directly from github
library(devtools)
install_github("miniCRAN", username="andrie")

Example:

# Determine and download the packages `ggplot2`, `plyr` and `reshape2`, including their dependencies:

library("miniCRAN")

pkgs <- c("ggplot2", "plyr", "reshape2")

pkgDep(pkgs)

pth <- file.path(tempdir, "miniCRAN")
makeRepo(pkgDep(pkgs), path=pth, download=TRUE)

About

R package to create internally consistent, mini version of CRAN

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 96.5%
  • R 3.5%