Use auth_save() with auth_as() to avoid repeatedly entering app credentials, making it easier to share auth between projects. Use auth_list() to list all saved credentials.

auth_save(auth, name)

auth_list()

Arguments

auth

One of rtweet_app(), rtweet_bot(), or rtweet_user().

name

Cache name to use.

See also

Other authentication: auth_as(), auth_get(), auth_setup_default(), rtweet_user()

Examples

if (FALSE) {
# save app auth for use in other sessions
auth <- rtweet_app()
auth_save(auth, "my-app")

# later, in a different session...
auth_as("my-app")
}