Description Usage Details See Also Examples
Function to retrieve an Evaluation object.
1 2 | synGetEvaluation(evaluationId)
synGetEvaluationByContentSource(projectId)
|
synGetEvaluation retrieves an Evaluation object, given its ID. synGetEvaluationByContentSource retrieves all Evaluations that derive their content from a Project, give its ID.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ## Not run:
# get an arbitrary Evaluation ID
anEvaluationId<-synRestGET("/evaluation")$results[[1]]["id"]
# retrieve the evaluation
evaluation<-synGetEvaluation(anEvaluationId)
# check its status
propertyValue(evaluation, "status")
# if I have administrative privileges I can update it
propertyValue(evaluation, "description")<-"some new description"
evaluation<-synStore(evaluation)
# Or if you know a project with an evaluation
# For example, the HPN-DREAM 1A challenge
projectId <- "syn1720047"
paginatedEvaluations <- synGetEvaluationByContentSource(projectId)
evaluation <- paginatedEvaluations@results[[1]]
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.