getCourseResult | R Documentation |
This method retrieves zip with course results by its resource id and node id on Learning Management System (LMS). 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.
getCourseResult(object, resource_id, node_id, path_outcome = ".", ...)
## S4 method for signature 'missing'
getCourseResult(object, resource_id, node_id, path_outcome = ".", ...)
## S4 method for signature 'Opal'
getCourseResult(
object,
resource_id,
node_id,
path_outcome = ".",
rename = TRUE
)
object |
An S4 object of class Opal that represents a connection to the LMS. |
resource_id |
A length one character vector with resource id. |
node_id |
A length one character vector with node id (test). |
path_outcome |
A length one character vector with path, where the zip should be stored. Default is working directory. |
... |
Additional arguments to be passed to the method, if applicable. |
rename |
A boolean value; optional; Set |
It downloads a zip and return a character string with path.
zip_file <- getCourseResult("89068111333293", "1617337826161777006")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.