Description Usage Arguments Value See Also Examples
View source: R/download_model.R
Download PMML source from Zementis Server.
1 | download_model(model_name, annotated = FALSE, ...)
|
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: |
... |
Additional arguments passed on to the underlying HTTP method.
This might be necessary if you need to set some curl options explicitly
via |
A list with the following components:
model_name
The model_name
of the downloaded model
including the suffix ".pmml".
model_source
An S3 object of class XMLInternalDocument
created by parsing the server response using XML::xmlParse()
.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.