getOrCreateExperimentState: Gets an experiment state

View source: R/JSON_library.R

getOrCreateExperimentStateR Documentation

Gets an experiment state

Description

Gets an experiment state by stateKind if it exists, or creates a new one if not.

Usage

getOrCreateExperimentState(experiment, stateType, stateKind, recordedBy,
  lsTransaction,
  lsServerURL = racas::applicationSettings$client.service.persistence.fullpath)

Arguments

experiment

an experiment object

stateType

lsType of the state

stateKind

lsKind of the state

recordedBy

the current username

lsTransaction

the id of the transaction

lsServerURL

the url for the roo server

Details

This will fail if the experiment has more than one non-ignored state of entered stateKind, as it would be unclear which to update.


mcneilco/racas documentation built on April 19, 2024, 1:12 p.m.