Learn R Programming

yhatr (version 0.15.1)

yhat.library: Import one or more libraries and add them to the Yhat model's

Description

Import one or more libraries and add them to the Yhat model's dependency list

Usage

yhat.library(name, src = "CRAN", version = NULL, user = NULL,
  install = TRUE)

Arguments

name
name of the package to be added
src
source from which the package will be installed on ScienceOps (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 ScienceOps server; this is typically set to False when the package has already been added to the ScienceOps base image.

Examples

Run this code
## Not run: ------------------------------------
# yhat.library("MASS")
# yhat.library(c("wesanderson", "stringr"))
# yhat.library("cats", src="github", user="hilaryparker")
# yhat.library("hilaryparker/cats")
# yhat.library("my_proprietary_package", install=FALSE)
## ---------------------------------------------

Run the code above in your browser using DataLab