Skip to contents

Adds a new version (update) to an existing library. The update mechanism depends on the library's updatemode.

Usage

mc_add_library_update(conn, library, updatename, js_code)

Arguments

conn

A connection object created by mc_connect.

library

Character string. Library name or transaction ID.

updatename

Character string. Name of this update (must be unique).

js_code

Character string. The new JavaScript code (or patch).

Value

A list containing the result of the RPC call (usually transaction ID).

Examples

if (FALSE) { # \dontrun{
mc_add_library_update(conn, "math", "v2", "function add(a, b) { return a + b + 1; }")
} # }