p_install_gh: Installs & Loads GitHub Packages

Description Usage Arguments See Also Examples

View source: R/p_install_gh.R

Description

Installs a GitHub package. A wrapper for install_github which is the same as install_github.

Usage

1
p_install_gh(package, dependencies = TRUE, ...)

Arguments

package

Repository address(es) in the format username/repo[/subdir][@ref|#pull]. Note that this must be a character string.

dependencies

logical. If TRUE necessary dependencies will be installed as well.

...

Additional parameters to pass to install_github.

See Also

install_github

Examples

1
2
3
4
5
6
7
## Not run: 
p_install_gh("trinker/pacman")

## Package doesn't exist
p_install_gh("trinker/pacmanAwesomer")

## End(Not run)

Example output

Installation failed: NULL : Failed to install 'pacman' from GitHub:
  Could not resolve host: api.github.com

The following packages were not able to be installed:
pacman
Warning message:
In p_install_gh("trinker/pacman") :
  The following may have incorrect capitalization specification:

pacman
Installation failed: NULL : Failed to install 'unknown package' from GitHub:
  Could not resolve host: api.github.com

The following packages were not able to be installed:
pacmanAwesomer

pacman documentation built on May 2, 2019, 1:08 p.m.