tag: Simple tagging of a Labstep entity (creates a new tag if none...

Description Usage Arguments Value Examples

View source: R/tag.R

Description

This function allows you to tag Labstep entities. If the tag exists already it will attach it to the entity, if not a new tag will be created.

Usage

1
tag(user, entity, name)

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.

name

The name of the tag to attach.

Value

Returns the tagged entity.

Examples

1
2
3
4
user <- login("demo@labstep.com","demopassword")
experiments <- getExperiments(user,count=1)
experiment = experiments[[1]]
experiment = tag(user,experiment,'My New Tag')

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