Attempts a small WRDS PostgreSQL connection using RPostgres. The return
value is a data frame so it can be printed or inspected in setup scripts.
Usage
wrds_check_credentials(
wrds_id = NULL,
password = NULL,
prompt = interactive(),
save = TRUE,
passfile = NULL
)Arguments
- wrds_id
Optional WRDS username override.
- password
Optional password. If omitted, a matching
.pgpassentry is preferred. When.pgpasshas no matching entry, an existingWRDS_PASSWORDenvironment variable is used before an interactive prompt. PostgreSQL may also usePGPASSWORDor another libpq-supported mechanism when no password is passed to the connection.- prompt
If
TRUE, prompt interactively for a WRDS PostgreSQL password when no password was supplied and no matching.pgpassentry exists.- save
If
TRUE, save a supplied or prompted password to.pgpassafter a successful WRDS connection test.- passfile
PostgreSQL password-file path. Defaults to
PGPASSFILEwhen set, otherwise the platform default password-file path.