Learn R Programming

miniCRAN (version 0.2.4)

repoPrefix: Get the path to the repo directory containing the package files.

Description

Get the path to the repo directory containing the package files.

Usage

repoPrefix(type, Rversion)

Arguments

type
character, indicating the type of package to download and install. See install.packages.
Rversion
numeric version of the R system for which to fetch packages. See R_system_version.

Value

  • The filepath to the package files directory.

Repo folder structure

The folder structure of a repository
  • Root
  • src/contrib
  • PACKAGES

item

  • bin
  • macosx/contrib/version
  • macosx/mavericks/contrib/version
  • macosx/leopard/contrib/version

itemize

  • PACKAGES