Description Usage Arguments Details Value Examples
View source: R/create_metadb_entry.R
creates a new object type in the metadata collection
1 | create_metadb_entry(db_connection, name, table, type, fields, bcprefix)
|
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. |
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.
Error message if not succesful.
1 2 3 4 5 6 | ## Not run:
if(interactive()){
#EXAMPLE1
}
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.