R: Get the path to the repo directory containing the package...

repoPrefix {miniCRAN} | R Documentation

## 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` | Version of R. Can be specified as a character string with the two digit R version, e.g. "3.1". Defaults to R.version

### Value

The filepath to the package files directory.

### Repo folder structure

The folder structure of a repository

- Root

  - src/contrib

    - PACKAGES

  - bin

    - windows/contrib/version

      - PACKAGES

    - macosx/contrib/version

      - PACKAGES

    - macosx/el-capitan/contrib/version

      - PACKAGES

    - macosx/leopard/contrib/version

      - PACKAGES

    - macosx/mavericks/contrib/version

      - PACKAGES

### Note

Not all versions of R are compatible with with all package types (e.g., `mac.binary.el-capitan` is only valid for R > 3.4.0).

[Package miniCRAN version 0.2.10 Index]