client_setup_default: Set up default client

View source: R/client.R

client_has_defaultR Documentation

Set up default client

Description

You'll need to run this function once per computer so that rtweet can use your client.

Usage

client_has_default()

client_setup_default()

Details

It will use the current default account for rtweet and save them as "rtweet". If a default is found it will use it instead.

Value

client_setup_default(): Invisibly returns the previous authentication mechanism. client_has_default(): A logical value TRUE if there is a default authentication.

See Also

Other client: client_as(), client_get(), client_save()

Examples

## Not run: 
if (!client_has_default()) {
   client_setup_default()
}

## End(Not run)

rtweet documentation built on May 29, 2024, 7:47 a.m.