R: Saves Runs.

labkey.experiment.saveRuns {Rlabkey} | R Documentation

## Saves Runs.

### Description

Saves experiment runs.

### Usage

    labkey.experiment.saveRuns(baseUrl=NULL, folderPath,
        protocolName, runList)

### Arguments

`baseUrl` | (optional) a string specifying the `baseUrl` for the labkey server
`folderPath` | a string specifying the `folderPath`
`protocolName` | a string specifying the protocol name of the protocol to use
`runList` | a list of experiment run objects

### Details

Saves experiment runs. Runs may refer to existing data and material objects, either inputs or outputs, by ID or LSID. Runs may also define new data and materials objects by not specifying an ID or LSID in their properties.

Refer to the labkey.experiment.createData, labkey.experiment.createMaterial, and labkey.experiment.createRun helper functions to assemble the data structure that saveRuns expects.

### Value

Returns the object representation of the experiment run.

### Author(s)

Ankur Juneja

### See Also

`labkey.experiment.createData`, `labkey.experiment.createMaterial`, `labkey.experiment.createRun`

### Examples

    library(Rlabkey)

    ## example with materialInputs and materialOutputs

    m1 <- labkey.experiment.createMaterial(
            list(name = "87444063.2604.626"), sampleSetName = "Study Specimens")
    m2 <- labkey.experiment.createMaterial(
            list(name = "87444063.2604.625"), sampleSetName = "Study Specimens")
    run <- labkey.experiment.createRun(
            list(name="new run"), materialInputs = m1, materialOutputs = m2)
    labkey.experiment.saveRuns(baseUrl="http://labkey/", folderPath="home",
            protocolName=labkey.experiment.SAMPLE_DERIVATION_PROTOCOL, runList=run)

[Package Rlabkey version 2.8.1 Index]