Learn R Programming

pkgcache (version 2.0.1)

default_cran_mirror: Query the default CRAN repository for this session

Description

If options("repos") (see options()) contains an entry called "CRAN", then that is returned. If it is a list, it is converted to a character vector.

Usage

default_cran_mirror()

Arguments

Value

A named character vector of length one, where the name is "CRAN".

Details

Otherwise the RStudio CRAN mirror is used.

Examples

Run this code
# NOT RUN {
default_cran_mirror()
# }

Run the code above in your browser using DataLab