store_credentials: Store credentials as ENV VARS

Description Usage Arguments Details

View source: R/credentials.R

Description

store_credentials() stores login and password information needed to connect to Cebrap's Brazilian Legislative Database as ENV VARS. Users are encourage to use it as way to both prevent unintentional password leakages in R scripts and to save time spent doing manual server authentication.

Usage

1
store_credentials(login, password)

Arguments

login

Database login

password

Database password

Details

This function need to be run just once. After that, authentication information will be saved across R sessions and all cebrapdata functions will use these to establish connection to Cebrap's Database.


nipe-cebrap/cebrapdata documentation built on Dec. 22, 2021, 2:17 a.m.