Private function that adds a package to the list of dependencies that will be installed on the Promote server
1 2 | add.dependency(name, importName, src, version, install, auth_token, ref,
subdir)
|
name |
name of the package to be installed |
importName |
name under which the package is imported (for a github package, this may be different from the name used to install it) |
src |
source that the package is installed from (CRAN or github) |
version |
version of the package |
install |
whether or not the package should be installed in the model image |
auth_token |
a personal access token for github or gitlab repositories |
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.