Package promote. November 15, 2017

Similar documents
Package yhatr. R topics documented: May 9, Type Package Title R Binder for the Yhat API Version Date

Package calpassapi. August 25, 2018

Package fitbitscraper

Package PxWebApiData

Package dkanr. July 12, 2018

Package elasticsearchr

Package datasets.load

Package githubinstall

Package aws.transcribe

Package rbraries. April 18, 2018

Package robotstxt. November 12, 2017

Package rwars. January 14, 2017

Package crossword.r. January 19, 2018

Package virustotal. May 1, 2017

Package jstree. October 24, 2017

Package imdbapi. April 24, 2018

Package censusapi. August 19, 2018

Package BiocManager. November 13, 2018

Package censusr. R topics documented: June 14, Type Package Title Collect Data from the Census API Version 0.0.

Package clipr. June 23, 2018

Package opencage. January 16, 2018

Package available. November 17, 2017

Package condusco. November 8, 2017

Package guardianapi. February 3, 2019

Package patentsview. July 12, 2017

Package repec. August 31, 2018

Package gtrendsr. August 4, 2018

Package Ohmage. R topics documented: February 19, 2015

Package rzeit2. January 7, 2019

Package loggit. April 9, 2018

Package imgur. R topics documented: December 20, Type Package. Title Share plots using the imgur.com image hosting service. Version 0.1.

Package io. January 15, 2018

Package httpcache. October 17, 2017

Package RPresto. July 13, 2017

Package RPushbullet. February 17, 2017

Package bigqueryr. October 23, 2017

Package cloudml. June 12, 2018

Package d3plus. September 25, 2017

Package facerec. May 14, 2018

Package internetarchive

Package geniusr. December 6, 2017

Package statsdk. September 30, 2017

Package htmlwidgets. July 10, 2017

Package goodpractice

Package gtrendsr. October 19, 2017

Package googlecomputeenginer

Package geojsonsf. R topics documented: January 11, Type Package Title GeoJSON to Simple Feature Converter Version 1.3.

Package rgho. R topics documented: January 18, 2017

Package oec. R topics documented: May 11, Type Package

Package nodbi. August 1, 2018

Package tidyimpute. March 5, 2018

Package RWildbook. April 6, 2018

Package rdryad. June 18, 2018

Package bigqueryr. June 8, 2018

Package darksky. September 20, 2017

Package QCAtools. January 3, 2017

Package scraep. November 15, Index 6

Package strat. November 23, 2016

Package postgistools

Package AWR.Kinesis. February 26, 2017

Package gcite. R topics documented: February 2, Type Package Title Google Citation Parser Version Date Author John Muschelli

Package messaging. May 27, 2018

Package librarian. R topics documented:

Package remotes. December 21, 2017

Package RAdwords. October 2, 2017

Package wikitaxa. December 21, 2017

Package bea.r. December 8, 2017

Package spark. July 21, 2017

Package rgdax. January 7, 2019

Package profvis. R topics documented:

Package sessioninfo. June 21, 2017

Package genesysr. June 14, 2018

Package regexselect. R topics documented: September 22, Version Date Title Regular Expressions in 'shiny' Select Lists

Package reval. May 26, 2015

Package kirby21.base

Package plumber. December 2, 2017

Package urlshortener

Package RODBCext. July 31, 2017

Package ether. September 22, 2018

Package naivebayes. R topics documented: January 3, Type Package. Title High Performance Implementation of the Naive Bayes Algorithm

Package AzureStor. December 25, 2018

Package shiny.router

Package SEMrushR. November 3, 2018

Package pdfetch. October 15, 2017

Package cattonum. R topics documented: May 2, Type Package Version Title Encode Categorical Features

Package ssh. June 4, 2018

Package GAR. September 18, 2015

Package nonlinearicp

Package fastdummies. January 8, 2018

Package taxizedb. June 21, 2017

Package jug. April 13, 2017

Package RYoudaoTranslate

Package sqliter. August 29, 2016

Package slickr. March 6, 2018

Package reportr. October 6, 2016

Package ECctmc. May 1, 2018

Package htmlwidgets. February 25, 2016

Package gridgraphics

Package algorithmia. September 13, 2016

Package scraep. July 3, Index 6

Transcription:

Type Package Title Client for the 'Alteryx Promote' API Version 1.0.0 Date 2017-11-14 Package promote November 15, 2017 Author Paul E. Promote <promotedev@alteryx.com> Maintainer Paul E. Promote <promotedev@alteryx.com> Deploy, maintain, and invoke predictive models using the 'Alteryx Promote' REST API. 'Alteryx Promote' is available at the URL: <https://www.alteryx.com/products/alteryx-promote>. Depends R (>= 3.2.0) URL https://github.com/alteryx/promote-r-client Imports httr, jsonlite, stringr, License FreeBSD RoxygenNote 6.0.1 NeedsCompilation no Repository CRAN Date/Publication 2017-11-15 18:49:37 UTC R topics documented: add.dependency....................................... 2 capture.src.......................................... 2 check.image.size...................................... 3 is.https............................................ 3 promote.deploy....................................... 3 promote.get......................................... 4 promote.library....................................... 4 promote.ls.......................................... 5 promote.post........................................ 5 promote.predict....................................... 6 promote.predict_raw.................................... 7 1

2 capture.src promote.spider.block.................................... 7 promote.spider.func..................................... 8 promote.unload....................................... 8 set.model.require...................................... 9 Index 10 add.dependency Private function that adds a package to the list of dependencies that will be installed on the Promote server Private function that adds a package to the list of dependencies that will be installed on the Promote server add.dependency(name, importname, src, version, install) name importname src version install name of the package to be installed name under which the package is imported (for a github package, this may be different from the name used to install it) source that the package is installed from (CRAN or github) version of the package whether or not the package should be installed in the model image capture.src Private function for catpuring the source code of model Private function for catpuring the source code of model capture.src(funcs, capture.model.require = TRUE) funcs functions to capture, defaults to required promote model functions capture.model.require flag to capture the model.require function

check.image.size 3 check.image.size Private function for checking the size of the user s image. Private function for checking the size of the user s image. check.image.size() is.https Private predicate function that checks if the protocol of a url is https. Private predicate function that checks if the protocol of a url is https. is.https(x) x is a url string promote.deploy Deploy a model to promote s servers This function takes model.predict and creates a model on promote s servers which can be called from any programming language via promote s REST API (see promote.predict). promote.deploy(model_name, confirm = TRUE, custom_image = NULL) model_name confirm custom_image name of your model boolean indicating whether to prompt before deploying name of the image you d like your model to use

4 promote.library Examples promote.config <- c( username = "your username", apikey = "your apikey", env = "http://sandbox.promotehq.com/" ) iris$sepal.width_sq <- iris$sepal.width^2 fit <- glm(i(species)=="virginica" ~., data=iris) model.predict <- function(df) { data.frame("prediction"=predict(fit, df, type="response")) } ## Not run: promote.library("randomforest") promote.deploy("irismodel") ## End(Not run) promote.get Private function for performing a GET request Private function for performing a GET request promote.get(endpoint, query = c()) endpoint query /path for REST request url parameters for request promote.library Import one or more libraries and add them to the promote model s dependency list Import one or more libraries and add them to the promote model s dependency list promote.library(name, src = "CRAN", version = NULL, user = NULL, install = TRUE)

promote.ls 5 name src version user install name of the package to be added source from which the package will be installed on Promote (github or CRAN) version of the package to be added Github username associated with the package 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. Examples ## Not run: promote.library("mass") promote.library(c("wesanderson", "stringr")) promote.library("cats", src="github", user="hilaryparker") promote.library("hilaryparker/cats") promote.library("my_proprietary_package", install=false) ## End(Not run) promote.ls Private function for determining model dependencies List all object names which are dependencies of and model.predict. promote.ls() promote.post Private function for performing a POST request Private function for performing a POST request promote.post(endpoint, query = c(), data, silent = TRUE, bulk = FALSE)

6 promote.predict endpoint query data silent bulk /path for REST request url parameters for request payload to be converted to raw JSON should output of url to console be silenced? Default is FALSE. is this a bulk style request? Default is FALSE. promote.predict Make a prediction using promote. This function calls promote s REST API and returns a response formatted as a data frame. promote.predict(model_name, data, model_owner, raw_input = FALSE, silent = TRUE) model_name data model_owner raw_input silent the name of the model you want to call input data for the model the owner of the model [optional] when true, incoming data will NOT be coerced into data.frame should output of url to console (via promote.post) be silenced? Default is FALSE. Examples promote.config <- c( username = "your username", apikey = "your apikey", env = "http://sandbox.promotehq.com/" ) ## Not run: promote.predict("irismodel", iris) ## End(Not run)

promote.predict_raw 7 promote.predict_raw Calls promote s REST API and returns a JSON document containing both the prediction and associated metadata. Calls promote s REST API and returns a JSON document containing both the prediction and associated metadata. promote.predict_raw(model_name, data, model_owner, raw_input = FALSE, silent = TRUE) model_name data model_owner raw_input silent the name of the model you want to call input data for the model the owner of the model [optional] when true, incoming data will NOT be coerced into data.frame should output of url to console (via promote.post) be silenced? Default is FALSE. Examples promote.config <- c( username = "your username", apikey = "your apikey", env="http://ip_of_alteryx_promote.com" ) ## Not run: promote.predict_raw("irismodel", iris) ## End(Not run) promote.spider.block Private function for recursively looking for variables Private function for recursively looking for variables promote.spider.block(block, defined.vars = c())

8 promote.unload block defined.vars code block to spider variables which have already been defined within the scope of the block. e.g. function argument promote.spider.func Private function for spidering function source code Private function for spidering function source code promote.spider.func(func.name) func.name name of function you want to spider promote.unload Removes a library from the promote model s dependency list Removes a library from the promote model s dependency list promote.unload(name) name of the package to be removed Examples ## Not run: promote.unload("wesanderson") ## End(Not run)

set.model.require 9 set.model.require Private function that generates a model.require function based on the libraries that have been imported in this session. Private function that generates a model.require function based on the libraries that have been imported in this session. set.model.require()

Index Topic deploy promote.deploy, 3 Topic import promote.library, 4 Topic predict promote.predict, 6 add.dependency, 2 capture.src, 2 check.image.size, 3 is.https, 3 promote.deploy, 3 promote.get, 4 promote.library, 4 promote.ls, 5 promote.post, 5 promote.predict, 3, 6 promote.predict_raw, 7 promote.spider.block, 7 promote.spider.func, 8 promote.unload, 8 set.model.require, 9 10