Skip to contents

Switch CRAN and/or Bioconductor mirrors for faster package installation.

Usage

set_mirror(repo = c("all", "cran", "bioc"), mirror = "tuna")

Arguments

repo

Character. Repository type: "cran", "bioc", or "all" (default: "all").

mirror

Character. Predefined mirror name (default: "tuna").

Value

Previous mirror settings (invisibly)

Examples

# Basic usage (commented to avoid configuration changes):
# set_mirror()  # Use default: all repos with tuna mirror
# set_mirror("cran", "westlake")
# set_mirror("bioc", "ustc")