Learn R Programming

miniCRAN (version 0.0-16)

makeRepo: Downloads packages from CRAN to specified path and creates repository or library.

Description

Given a list of packages, downloads to a specified destination folder, then creates PACKAGES file.

Usage

makeRepo(pkgs, path, repos = getOption("repos"), type = "source",
  Rversion = getRversion(), download = FALSE, writePACKAGES = TRUE)

getRversion()

makeLibrary(pkgs, path, type = "source")

Arguments

pkgs
Character vector of packages to download
type
Rversion
String of format ".", e.g. "3.2". Only used if type is not "source"
download
If TRUE downloads packages, otherwise just creates PACKAGES file
writePACKAGES
If TRUE, calls write_PACKAGES to update the repository PACKAGES file # Make repo for source and win.binary makeRepo(pkgList, path=pth, repos=revolution, download=TRUE, writePACKAGES=TRUE, ty
path
Destination download path
repos
URL(s) of the 'contrib' sections of the repositories. Passed to available.packages

Details

The function makeRepo creates a repository, similar in structure to CRAN. It optionally updates the PACKAGES file. If done correctly, it is possible to use this folder as a repository, i.e. it will support functions like install.packages. The function makeLibrary downloads the packages into a single folder, i.e. similar to a library on a machine. Uses download.packages and write_PACKAGES