promote.library {promote} | R Documentation |
Import one or more libraries and add them to the promote model's dependency list
Description
Import one or more libraries and add them to the promote model's dependency list
Usage
promote.library(name, src = "version", version = NULL, user = NULL,
install = TRUE, auth_token = NULL, url = NULL, ref = "master",
subdir = NULL)
Arguments
name |
name of the package to be added |
src |
source from which the package will be installed on Promote (github or CRAN) |
version |
version of the package to be added |
user |
Github username associated with the package |
install |
Whether the package should also be installed into the model on the Promote server; this is typically set to False when the package has already been added to the Promote base image. |
auth_token |
Personal access token string associated with a private package's repository |
url |
A valid URL pointing to a remote hosted git repository |
ref |
The git branch, tag, or SHA of the package to be installed |
subdir |
The path to the repo subdirectory holding the package to be installed |
Examples
## Not run:
promote.library("MASS")
promote.library(c("wesanderson", "stringr"))
promote.library("hilaryparker/cats")
promote.library("cats", src="github", user="hilaryparker")
promote.library("my_public_package", install=FALSE)
promote.library("my_public_package", src="git", url="https://gitlab.com/userName/rpkg.git")
promote.library("my_proprietary_package", src="github", auth_token=<yourToken>)
promote.library("testPkg", src="github", user="emessess", auth_token=<yourToken>)
promote.library("priv_pkg",
src="git",
url="https://x-access-token:<PersonalAccessToken>ATgithub.com/username/rpkg.git")
promote.library("priv_pkg",
src="git",
url="https://x-access-token:<PersonalAccessToken>ATgitlab.com/username/rpkg.git",
ref="stage")
promote.library("my_package", src="github", auth_token=<yourToken> subdir="/pathToSubdir/")
## End(Not run)
[Package promote version 1.1.1 Index]