Description Usage Arguments Value Examples
View source: R/accessory_functions.R
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.
1 2 3 4 5 6 7 8 9 | save_credentials(
user,
password,
host,
port,
database,
LDAP,
destination_path = getwd()
)
|
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. |
No return value, saves DB administrator credentials in local folder.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.