requireGitHub_package | R Documentation |
require a specific version of a package from GitHub, installing it if necessary.
requireGitHub_package(username, path, sha1, pkg.name)
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). |
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.
was the package installed? TRUE or FALSE
Toby Dylan Hocking
if(FALSE){
requireGitHub_package(
"aldro61",
"mmit/Rpackage",
"edf81ba77fdd4b005ad89b81d9e12d289c8146e9",
"mmit")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.