View source: R/deprecated_database.R
create_sqlite_db | R Documentation |
Used to match deprecated 'login_server' function. Use DBI_tables_create()
to create tables in 'DBI' supported database for new 'RegLogServer' object.
create_sqlite_db(output_file, credentials = NULL, credentials_pass_hashed)
output_file |
path to new 'SQLite' database. After creation you need to provide it to |
credentials |
you can pass credentials data to create already populated tables. Provide data.frame object containing variables: timestamp, user_id, user_mail and user_pass. If there are multiple records with the same user_id, the most recent will be kept only. |
credentials_pass_hashed |
specify if you put in some credentials data. Are the passwords already hashed with 'scrypt' package? Takes TRUE (if hashed) or FALSE (if not hashed and need hashing) |
sqlite.path <- tempfile(fileext = "sqlite") create_sqlite_db(sqlite.path) database <- sqlite_get_db(sqlite.path) # you can then pass 'sqlite.path' to you 'login_server' call # # login_server(db_method = "sqlite", # sqlite_db = sqlite.path, # ...) # print(database)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.