Skip to contents

Format the primary R table into a DT

Usage

cdr_RT2DT_primary(db_tbl, cell_edit_permission, lock_fields = c())

Arguments

db_tbl

change log table imparted from the DB

cell_edit_permission

bool: do you want to allow the admin table cells to be edited

lock_fields

strings: column names you want to lock up e.g. c('Species','Petal.Width')

Value

a DT object to present the primary table

Examples

if (FALSE) {
crudr:::cdr_RT2DT_primary(iris, cell_edit_permission = T)
}