Learn R Programming

plug (version 0.2.0)

plug_clear_credentials: Remove stored credentials and tokens for Plug API

Description

This function removes the username, password and cached token stored by this package from the keyring.

Usage

plug_clear_credentials(credentials = TRUE)

Value

TRUE (invisibly) if something was removed, FALSE otherwise.

Arguments

credentials

If TRUE (the default), removes the stored username and password. If FALSE, only the cached token is removed.

Examples

Run this code
old <- options(keyring_backend = "env")

plug_store_credentials("myusername", "mypassword")
plug_clear_credentials()

options(old)

Run the code above in your browser using DataLab