github: Package source: github

Description Usage Arguments Examples

View source: R/source-github.r

Description

Package source: github

Usage

1
2
  github(username = "hadley", repo = NULL, ref = "master",
    subdir = NULL, auth_user = NULL, password = NULL)

Arguments

username

This is the only parameter that must be specified, and for the recommended package structure on github it is the only parameter that should be specified

repo

The repo name - if ommited, the package name is used

ref

The branch/tag name to use - if omitted, will look in master, and in all appropriately named tags

subdir

If the package is not found in the root directory of the package this specifies where it should be found.

auth_user

If authentication is needed, and the authentication username is different to the username

password

The password to use for authentication

Examples

1
2
3
4
5
6
7
8
h <- github("hadley")
has_package(h, "ggplot2")
has_package(h, "ggplot3")
package_info(h, "ggplot2")

w <- github("wch")
has_package(w, "extrafont")
has_package(c(h, w), "extrafont")

hadley/packman documentation built on May 17, 2019, 11:04 a.m.