download_model: Download PMML model

Description Usage Arguments Value See Also Examples

View source: R/download_model.R

Description

Download PMML source from Zementis Server.

Usage

1
download_model(model_name, annotated = FALSE, ...)

Arguments

model_name

Name of the PMML model to download.

annotated

Logical indicating if server should return annotated PMML model source. The annotated source may contain warnings embedded in XML comments that are useful for debugging. (Default: FALSE)

...

Additional arguments passed on to the underlying HTTP method. This might be necessary if you need to set some curl options explicitly via config.

Value

A list with the following components:

See Also

upload_model

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
 ## Not run: 
   download_model("iris_model")

   # Download all models and save them to disk
   downloads <- get_models() %>% purrr::map(download_model)
   file_names <- purrr::map_chr(downloads, "model_name")
   purrr::walk2(purrr::map(downloads, "model_source"),
               file_names,
               XML::saveXML)
 
## End(Not run)

alex23lemm/zementisr documentation built on Jan. 9, 2020, 1:49 a.m.