Description Usage Arguments Examples
Import one or more libraries and add them to the promote model's dependency list
1 2 3 |
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 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | ## 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.