Learn R Programming

opalr (version 3.3.1)

oadmin.install_package: Install CRAN package

Description

Install package from CRAN repos. To install the latest version of a package, it has to be removed first.

Usage

oadmin.install_package(opal, pkg, repos = NULL, profile = NULL)

Value

TRUE if successfully installed

Arguments

opal

Opal object or list of opal objects.

pkg

Package name.

repos

Character vector, the base URLs of the repositories to use.

profile

The R servers profile name to which operation applies. See also opal.profiles.

See Also

Other administration functions: oadmin.install_bioconductor_package(), oadmin.install_cran_package(), oadmin.install_devtools(), oadmin.install_github_package(), oadmin.install_local_package(), oadmin.installed_devtools(), oadmin.installed_packages(), oadmin.installed_package(), oadmin.package_description(), oadmin.remove_package()

Examples

Run this code
if (FALSE) {
o <- opal.login('administrator','password', url='https://opal-demo.obiba.org')
oadmin.install_package(o, 'xxx')
opal.logout(o)
}

Run the code above in your browser using DataLab