set_crowdtangle_token: Write CT Token to system environment

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Allows to write a CT API token to the system environment.

Usage

1
Warning: Never store your API token in plain text within public or semi-public environments, or print it in public scripts.

Arguments

option

enter if token shall be entered in a prompted RStudio window, and txt if the token is provided as a txt file.

tokenpath

Only required if option == 'txt'. Path where txt file with token is stored.

tokenname

Name under which token shall be saved in system environment. Defaults to "CT_TOKEN".

Value

A string with a CT API Token.

Examples

1
2
# Set CT Token (Once per session)
#set_crowdtangle_token(option = "enter")

schliebs/rtangle documentation built on Dec. 22, 2021, 10:22 p.m.