save_credentials: Save MongoDB Credentials

Description Usage Arguments Value Examples

View source: R/accessory_functions.R

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

1
2
3
4
5
6
7
8
9
save_credentials(
  user,
  password,
  host,
  port,
  database,
  LDAP,
  destination_path = getwd()
)

Arguments

user

MongoDB user name.

password

MongoDB user password.

host

MongoDB server host.

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

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

## End(Not run)

CEDARS documentation built on Feb. 7, 2021, 5:06 p.m.