Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

R package to create internally consistent, mini version of CRAN

License

NotificationsYou must be signed in to change notification settings

andrie/miniCRAN

Repository files navigation

R-CMD-checkCRAN statusCode coverageCRAN RStudio mirror downloads

Create a mini version of CRAN containing only selected packages

Introduction

At the end of 2014, CRAN consisted of more than 6,000 packages, and by2017 this number doubled to more than 12,000. Many organisations need tomaintain a private mirror of CRAN, but with only a subset of packagesthat are relevant to them.

TheminiCRAN package makes it possible to create an internallyconsistent repository consisting of selected packages from CRAN-likerepositories. The user specifies a set of desired packages, andminiCRAN recursively reads the dependency tree for these packages,then downloads only this subset.

Important functions:

FunctionUse it for
pkgDep()Find package dependencies
makeRepo()Make repository (with or without downloading packages)
addPackage()Add additional packages (and their dependencies) to existing repository
updatePackages()Update the versions of packages currently in the repository

Installation:

Get the stable version from CRAN:

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

Development version

Get the latest development version from github:

# Use `devtools` to install directly from githublibrary(devtools)install_github("andrie/miniCRAN")

Example:

# Determine and download the packages `ggplot2`, `plyr` and `reshape2`,# including their dependencies:library("miniCRAN")pkgs<- c("ggplot2","plyr","reshape2")makeRepo(pkgDep(pkgs),path= file.path(tempdir(),"miniCRAN"))

Supported by Microsoft

I started this project while employed by Revolution Analytics andMicrosoft. Microsoft has kindly agreed that I maintain the projectindividually, and retains copyright to all work on the project untilOctober 2017.

About

R package to create internally consistent, mini version of CRAN

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors13


[8]ページ先頭

©2009-2025 Movatter.jp