save_credentials: Save MongoDB Credentials

View source: R/accessory_functions.R

save_credentialsR Documentation

Save MongoDB Credentials

Description

Saves MongoDB credentials as 'db_credentials.Rdata' and Shiny app file as 'app.R'. Those two files should be copied to the Shiny Server app directory. Needed only if using Shiny Server; credentials are entered in the command line for local app use.

Usage

save_credentials(
  user,
  password,
  host,
  replica_set,
  port,
  database,
  LDAP,
  destination_path = getwd()
)

Arguments

user

MongoDB user name.

password

MongoDB user password.

host

MongoDB server host.

replica_set

MongoDB replica set, if indicated.

port

MongoDB port.

database

MongoDB database name.

LDAP

is LDAP being used? In this case, CEDARS will not prompt for user ID/password and a check will NOT be made on the users table. Access will be granted, relying on LDAP authentication. Annotations will be stamped with LDAP user name.

destination_path

Folder where the files should be saved. Default is working directory.

Value

No return value, saves DB administrator credentials in local folder.

Examples

## Not run: 
save_credentials(user = 'John', password = 'db_password_1234', host = 'server1234',
database = 'myDB', LDAP = FALSE, destination_path = getwd())

## End(Not run)

simon-hans/CEDARS documentation built on Feb. 14, 2024, 3:16 a.m.