Skip to contents

Prompts the user to input their WRDS (Wharton Research Data Services) username and password, and stores these credentials in a .Renviron file. The user can choose to store the .Renviron file in either the project directory or the home directory. If the .Renviron file already contains WRDS credentials, the user will be asked if they want to overwrite the existing credentials. Additionally, the user has the option to add the .Renviron file to the .gitignore file to prevent it from being tracked by version control.

Usage

set_wrds_credentials()

Value

Invisibly returns TRUE. Displays messages to the user based on their input and actions taken.

Details

Storing credentials is not enough to connect to WRDS: you also need to enroll in two-factor authentication (Duo) and accept the WRDS terms of use. See the "WRDS account setup" section of get_wrds_connection().

Examples

if (FALSE) { # \dontrun{
set_wrds_credentials()
} # }