Learn R Programming

rqti (version 1.0.0)

getCourseResult: Get zip with course results by resource id and node id

Description

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.

Usage

getCourseResult(object, resource_id, node_id, path_outcome = ".", ...)

# S4 method for missing getCourseResult(object, resource_id, node_id, path_outcome = ".", ...)

# S4 method for Opal getCourseResult( object, resource_id, node_id, path_outcome = ".", rename = TRUE )

Value

It downloads a zip and return a character string with path.

Arguments

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 TRUE value to take the short name of the course element for naming zip (results_shortName.zip). FALSE combines in zip name course id and node id. Default is TRUE.

Examples

Run this code
if (FALSE) { # interactive()
zip_file <- getCourseResult("89068111333293", "1617337826161777006")
}

Run the code above in your browser using DataLab