repo_auth_key_get: Query or set repository password in the system credential...

View source: R/auth.R

repo_auth_key_getR Documentation

Query or set repository password in the system credential store

Description

Use pak's internal copy of the keyring package to query or set a repository password in the system credential store.

Usage

repo_auth_key_get(url, username = NULL)

repo_auth_key_set(url, password, username = NULL)

Arguments

url

Repository URL. It may contain a username, in which case username may be NULL.

username

User name, if it is not included in url.

password

Password to set.

Details

repo_auth_key_get() retrieves a password from the default keyring. It errors if it cannot find the credentials for url.

repo_auth_key_set() adds or updates a password in the system credential store.

Value

repo_auth_key_get() returns a single string, the repository password.


r-lib/pak documentation built on April 13, 2025, 7:38 a.m.