Learn R Programming

opalr (version 1.2.0)

oadmin.install_github: Install a package form GitHub

Description

Install a package from a source repository on GitHub. Makes sure devtools package is available.

Usage

oadmin.install_github(opal, pkg, username = getOption("github.user"),
  ref = "master", auth_user = NULL, password = NULL)

Arguments

opal

Opal object or list of opal objects.

pkg

Package name.

username

GitHub user name.

ref

Desired git reference. Could be a commit, tag, or branch name. Defaults to "master".

auth_user

Your github username if you're attempting to install a package hosted in a private repository (and your username is different to username).

password

Your github password

See Also

Other administration functions: oadmin.install_devtools, oadmin.install_package, oadmin.installed_devtools, oadmin.installed_packages, oadmin.installed_package, oadmin.package_description, oadmin.remove_package

Examples

Run this code
# NOT RUN {
o <- opal.login('administrator','password','https://opal-demo.obiba.org')
oadmin.install_github(o, 'opalr', 'obiba')
opal.logout(o)
# }

Run the code above in your browser using DataLab