getgit: Install a GitHub Package

View source: R/getgit.R

getgitR Documentation

Install a GitHub Package

Description

Installs an R package from GitHub using pak::pak(). If installation fails with GitHub HTTP error 401 / bad credentials, the stored GitHub credentials are deleted using gitcreds::gitcreds_delete(), and the installation is attempted once more.

Usage

getgit(reponame, ...)

Arguments

reponame

Character string. GitHub repository name in the form "owner/repo", e.g. "obreschkow/cooltools".

...

Additional arguments passed to pak::pak().

Value

Invisibly returns the result of pak::pak().

Examples

## Not run: 
getgit("obreschkow/cooltools")

## End(Not run)


cooltools documentation built on Sept. 11, 2026, 5:06 p.m.