Skip to contents

Retrieves the JavaScript code of a library. By default, returns the active code. If updatename is provided, returns the code of that specific update (or the initial code if updatename = "").

Usage

mc_get_library_code(conn, library, updatename = NULL)

Arguments

conn

A connection object created by mc_connect.

library

Character string. Library name or transaction ID.

updatename

Optional character string. Update name. If omitted, returns the active code. Use "" to retrieve the initial code.

Value

A list containing the library code and metadata.

Examples

if (FALSE) { # \dontrun{
active_code <- mc_get_library_code(conn, "math")
initial_code <- mc_get_library_code(conn, "math", updatename = "")
} # }