rs_set_repos: Add secondary 'CRAN'-like repository to the 'RStudio'...

View source: R/utils-rstudio.R

rs_set_reposR Documentation

Add secondary 'CRAN'-like repository to the 'RStudio' settings

Description

Add self-hosted repository, such as 'drat', 'r-universe' to 'RStudio' preference. Please restart 'RStudio' to take changes into effect.

Usage

rs_set_repos(name, url, add = TRUE)

Arguments

name

repository name, must be unique and readable

url

the website address of the repository, starting with schemes such as 'https'.

add

whether to add to existing repository; default is true

Details

'RStudio' allows to add secondary 'CRAN'-like repository to its preference, such that users can add on-going self-hosted developing repositories (such as package 'drat', or 'r-universe'). These repositories will be set automatically when running install.packages.

Value

a list of settings.


dipsaus documentation built on June 27, 2024, 5:10 p.m.