requireGitHub_package: require a package from GitHub

View source: R/require.R

requireGitHub_packageR Documentation

require a package from GitHub

Description

require a specific version of a package from GitHub, installing it if necessary.

Usage

requireGitHub_package(username, path, sha1, pkg.name)

Arguments

username

github username, e.g. "aldro61"

path

repo name and path to R pkg, e.g. "mmit/Rpackage"

sha1

hash

pkg.name

the package name that you give to library ("mmit" in the example above).

Details

This function can be used for packages which are not in the root directory of a GitHub repo, or for packages which do not have the same name as the GitHub repo.

Value

was the package installed? TRUE or FALSE

Author(s)

Toby Dylan Hocking

Examples

if(FALSE){
requireGitHub_package(
  "aldro61",
  "mmit/Rpackage",
  "edf81ba77fdd4b005ad89b81d9e12d289c8146e9",
  "mmit")
}

tdhock/requireGitHub documentation built on Jan. 27, 2024, 9:03 p.m.