create_metadb_entry: create_metadb_entry

Description Usage Arguments Details Value Examples

View source: R/create_metadb_entry.R

Description

creates a new object type in the metadata collection

Usage

1
create_metadb_entry(db_connection, name, table, type, fields, bcprefix)

Arguments

db_connection

mongolite connection to metadb table

name

Name ob object type. Must be unique in metadb table

table

collection that will hold instances of this type.

type

object type used for searching (to be controlled a some point)

fields

list of fields for objects

bcprefix

Prefix for barcode generation.

fieldreq

"Y","N" list to determine if the field is required.

Details

Parameter table must be from lims_types defined in lims_config.

Allowed data types are datatypes defined in lims_config.

Currently "string","int","float","boolean","date","array","file","script" are allowed.

Value

Error message if not succesful.

Examples

1
2
3
4
5
6
## Not run: 
if(interactive()){
 #EXAMPLE1
 }

## End(Not run)

ceparman/ShinyLIMS documentation built on May 20, 2020, 12:34 a.m.