| getCourseAssessment | R Documentation |
This method retrieves current assessment data for a course element on a Learning Management System (LMS), including score, maximum score, passed status, and attempts. If no LMS connection object is provided, it attempts to guess the connection using default settings (e.g., environment variables). If the connection cannot be established, an error is thrown.
This method retrieves current assessment data for a course element on LMS
Opal by course id and course element id. It returns user metadata together
with score, maximum score, passed status, and attempts. If user_id is
supplied, the query is restricted to that user login name or email address.
getCourseAssessment(object, course_id, node_id, user_id = NULL, ...)
## S4 method for signature 'missing'
getCourseAssessment(object, course_id, node_id, user_id = NULL, ...)
## S4 method for signature 'Opal'
getCourseAssessment(object, course_id, node_id, user_id = NULL)
object |
An S4 object of class Opal that represents a connection to the LMS. |
course_id |
A character vector of length one specifying the course context ID. |
node_id |
A character vector of length one specifying the course element ID. |
user_id |
A character vector of length one specifying the user login name
or email address. If |
... |
Additional arguments to be passed to the method, if applicable. |
A data frame with assessment scores.
A data frame with assessment scores. Each row represents a user and contains identity id, user id, user name/email, score, maximum score, passed status, and attempts.
assessment <- getCourseAssessment("89068111333293", "1617337826161777006")
assessment <- getCourseAssessment("89068111333293", "1617337826161777006")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.