attachProtocol: Attach a Protocol to an Experiment on Labstep

Description Usage Arguments Value Examples

View source: R/attachProtocol.R

Description

This function allows you to attach a Protocol to an existing Experiment.

Usage

1
attachProtocol(user, experiment, protocol)

Arguments

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

Value

Returns an 'experiment' object

Examples

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)

Labstep/labstepR documentation built on Jan. 30, 2020, 7:11 p.m.