Description Usage Arguments Value Examples
View source: R/attachProtocol.R
This function allows you to attach a Protocol to an existing Experiment.
1 | attachProtocol(user, experiment, protocol)
|
user |
A labstep user object. Must contain an 'api_key' field. Returned from 'login' command |
experiment |
The experiment you want to attach the protocol to. Must have at least an 'id' field. |
protocol |
The protocol you want to attach. Must have at least an 'id' field |
Returns an 'experiment' object
1 2 3 4 5 6 7 | user <- login("demo@labstep.com","demopassword")
expName = 'My First Experiment'
expDesc = 'An experiment testing the labstepR library'
experiment <- createExperiment(user,expName,expDesc)
protocol <- createProtocol(user,'My First Protocol')
experiment <- attachProtocol(user,experiment,protocol)
print(experiment)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.