Learn R Programming

opalr (version 1.2.0)

dsadmin.set_method: Set DataSHIELD method

Description

Set DataSHIELD method

Usage

dsadmin.set_method(opal, name, func = NULL, path = NULL,
  type = "aggregate")

Arguments

opal

Opal object or list of opal objects.

name

Name of the method, as it will be accessed by DataSHIELD users.

func

Function name.

path

Path to the R file containing the script (mutually exclusive with func).

type

Type of the method: "aggregate" (default) or "assign"

See Also

Other DataSHIELD functions: dsadmin.get_methods, dsadmin.get_method, dsadmin.get_options, dsadmin.install_package, dsadmin.installed_package, dsadmin.package_descriptions, dsadmin.package_description, dsadmin.remove_package, dsadmin.rm_methods, dsadmin.rm_method, dsadmin.rm_option, dsadmin.rm_package_methods, dsadmin.set_option, dsadmin.set_package_methods

Examples

Run this code
# NOT RUN {
o <- opal.login('administrator','password','https://opal-demo.obiba.org')
dsadmin.set_method(o, 'foo', 'base::mean')
opal.logout(o)
# }

Run the code above in your browser using DataLab