repo_string_as_named_list: Convert secondary repo string to named list

repo_string_as_named_listR Documentation

Convert secondary repo string to named list

Description

The secondary repo string uses | to separate the repo names and their values, as well as two different repos, e.g. 'ropensci|https://ropensci.r-universe.dev|username|https://username.r-universe.dev'.

Usage

repo_string_as_named_list(x)

Arguments

x

secondary repository string from "rstudio-prefs.json" –> "cran_mirror" –> "secondary"

Value

named list

Author(s)

Daniel D. Sjoberg (2021-2022)

S.A. van der Wulp (since 2026)

Examples

repo_string_as_named_list(
  'ropensci|https://ropensci.r-universe.dev|username|https://username.r-universe.dev'
)


rstudio.prefs documentation built on Sept. 26, 2026, 5:06 p.m.