Learn R Programming

shiny.collections (version 0.1.1)

make_sure_table_exists: Make sure that rethinkdb table exists

Description

This function checks whether table `table_name` exists in databse `db_name` and if not it creates one.

Usage

make_sure_table_exists(connection, table_name)

Arguments

connection

structure with rethinkdb connection details

table_name

character with table name

Examples

Run this code
# NOT RUN {
cn <- connect()
make_sure_db_exists(cn, "temp_db")
make_sure_table_exists(cn, "table one", "temp_db")
# }

Run the code above in your browser using DataLab