addComment: Adds a comment to a thread on Labstep

Description Arguments Value Examples

View source: R/addComment.R

Description

This function allows you to comment on different content types

Arguments

user

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

object

The labstep object you want to comment on. Can be 'protocol', 'experiment' or 'resource'

body

The body of the comment in plain text.

Value

Returns a 'comment' 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)
commentBody = 'An experiment testing the labstepR library'
comment <- addComment(user,experiment,commentBody)
print(comment)

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