View source: R/labkey.storage.R
labkey.storage.update | R Documentation |
Update an existing LabKey Freezer Manager storage item to change its properties or location within the storage hierarchy. Storage items can be of the following types: Physical Location, Freezer, Primary Storage, Shelf, Rack, Canister, Storage Unit Type, or Terminal Storage Location.
labkey.storage.update(baseUrl=NULL, folderPath, type, props)
baseUrl |
a string specifying the |
folderPath |
a string specifying the |
type |
a string specifying the type of storage item to update |
props |
a list properties for the storage item (i.e. name, description, etc.), must include the RowId primary key |
A list containing a data element with the property values for the updated storage item.
Cory Nathe
labkey.storage.create
,
labkey.storage.delete
## Not run:
library(Rlabkey)
## create a storage unit type and then update it to change some properties
plateType = labkey.storage.create(
baseUrl="http://labkey/",
folderPath="home",
type="Storage Unit Type",
props=list(name="Test 8X12 Well Plate", unitType="Plate", rows=8, cols=12 )
)
plateType = labkey.storage.update(
baseUrl="http://labkey/",
folderPath="home",
type="Storage Unit Type",
props=list(rowId=plateType$data$rowId, positionFormat="NumAlpha", positionOrder="ColumnRow" )
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.