Description Arguments Value Examples
This function allows you to comment on different content types
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. |
Returns a 'comment' object
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.