Evaluation : get_permissions
Evaluation_GetPermissions.RdGet the user permissions for this evaluation.
Errors
- An error is raised if the evaluation's id is not set.
- An error is also raised if the service rejects the request or an HTTP error occurs.
Examples
if (FALSE) { # \dontrun{
## Get permissions for the current user
library(synapser)
synLogin()
PROJECT_ID = "syn123456" # replace with your project ID
# Store a new evaluation in the project first
evaluation = Evaluation(
name = "My Challenge Evaluation",
description = "Evaluation for my data challenge",
content_source = PROJECT_ID,
submission_instructions_message = "Submit CSV files only",
submission_receipt_message = "Thank you for your submission!"
) |> synStore()
# Get the permissions for the current user
my_permissions = evaluation |> synGetPermissions()
my_permissions
} # }