addTagTo: Attach an existing tag to an entity on Labstep. See 'tag' for...

Description Usage Arguments Value Examples

View source: R/addTagTo.R

Description

This function allows you to attach a tag to a Labstep entity (Protocol, Resource or Experiment).

Usage

1
addTagTo(user, entity, tag)

Arguments

user

A labstep user object. Must contain an 'api_key' field. Returned from 'login' command

entity

The Labstep entity to tag. Can be a Resource, Experiment or Protocol.

tag

A tag entity. Must have an 'id' field.

Value

Returns the tagged entity.

Examples

1
2
3
4
5
6
user <- login("demo@labstep.com","demopassword")
tags <- getTags(user,count=1)
tag = tags[[1]]
experiments <- getExperiments(user,count=1)
experiment = experiments[[1]]
experiment = addTagTo(user,experiment,tag)

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