tag.Rd
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.
tag(user, entity, name)
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. |
Returns the tagged entity.
user <- login("demo@labstep.com","demopassword") experiments <- getExperiments(user,count=1) experiment = experiments[[1]] experiment = tag(user,experiment,'My New Tag')