ojo_auth: Create configuration for OJO database connection

View source: R/ojo_auth.R

ojo_authR Documentation

Create configuration for OJO database connection

Description

Configure credentials for the Open Justice Oklahoma database

Usage

ojo_auth(
  host,
  port,
  username,
  password,
  ...,
  .admin = F,
  .overwrite = T,
  .install = T
)

Arguments

host

The host name of the database server

port

The port number of the database server

username

The username to use to connect to the database

password

The password to use to connect to the database

...

Placeholder for additional arguments

.admin

A logical value indicating whether to connect to the database as an administrator

.overwrite

A logical value indicating whether to overwrite the existing .Renviron file

.install

A logical value indicating whether to install the database connection or use it only for the current session

Details

Assists the user in populating a .Renviron file with the necessary environment variables to connect to the Open Justice Oklahoma database.

Value

Nothing

Side Effects

The first time this function is run, it will prompt the user for a username, password, and host name. It will then store these credentials in the user's .Renviron file. If the .Renviron file already exists, it will be backed up and the new credentials will be appended to the end of the file. If the .Renviron file does not exist, it will be created and the credentials will be stored there.

Examples

## Not run: 
ojo_auth()

## End(Not run)

openjusticeok/ojodb documentation built on Aug. 4, 2024, 3:25 p.m.